Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008


all groups > vb.net > january 2005 > threads for thursday january 13

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Good Multidimensional Arrays article
Posted by dotNETnews at 1/13/2005 11:54:46 PM
I understand what are 1 and 2 Dimensional Arrays but I have some problems understanding 3 and more dimensional Arrays. If you know a good article, let me know. Thnaks. ...more >>

Can't fill datagrid?
Posted by Brett at 1/13/2005 11:48:08 PM
I have the following code in VS Studio .NET 2005 beta: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.DataAdapter1.Fill(DataSet1) End Sub Where a database connection has been made during design time and I can pr...more >>

ActiveX
Posted by Adrian at 1/13/2005 11:00:48 PM
Hi What would the equivalent to an ActiveX be in VB.Net? I need an application that will run as a trusted site and be imbedded in a browser but have access to a locally installed programs Com objects. It also need to be complied so I can't use VB or JS script. Also is there an upgrade for...more >>

Not valid namespace
Posted by DDF at 1/13/2005 10:18:32 PM
I took this snippet from a book I foudn online. Public Class Demo Public Structure ValueDemo Public X As Integer =20 End Structure Public Class RefDemo Public Y As Integer End Class Public Sub InstantiateTypes() ' This line declares a ValueDemo variable ...more >>

Alguien que me explique esto?
Posted by Ch0rY at 1/13/2005 10:15:20 PM
Lineas de codigo y explicación al final del mensaje. ------------------------------------------------- Error que da ------------------------------------------------- Consulte el final de este mensaje para obtener más detalles sobre cómo llamar a la depuración Just-In-Time (JIT) en lugar de...more >>

Form.Show problem
Posted by Kevin at 1/13/2005 10:13:46 PM
In VB6 I have this in frmMain: Private sub Button1_Click() frmSecondOne.Show me.Hide End Sub and then in frmSecondOne: Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer) frmMain.Show End Sub How do I do this in VB.NET?...more >>

How do I clone a tab page?
Posted by Scott Gunn at 1/13/2005 9:51:41 PM
In my app I want to have a run-time generated tab showing various controls - for instance a form for a user to fill in. I have a tab page in a hidden tabcontrol and all I want to do is clone it to another tabcontrol and show it. Giving me the ability to show maybe 5, 6 , 7 or more of the sam...more >>

MemoryStream.GetBuffer returns 1024 bytes
Posted by Brian Mitchell at 1/13/2005 9:39:53 PM
Hello, I am using a MemoryStream to serialize a class but when I use the GetBuffer method it returns exactly 1024 bytes even though the stream is only 675 bytes. If I look at the MemoryStream.Length it shows 675 and even if I do a ? MemoryStream.GetBuffer in the command window it will will ...more >>



are the SDKs in the setup disks
Posted by Neo at 1/13/2005 9:27:34 PM
I got the VS.NET 2003 setup discs, does this mean that i also have the Microsoft .NET Framework SDK??? Or do i have to download this seperately?? ...more >>

Windows Service cannot create text files?
Posted by Amjad at 1/13/2005 8:35:02 PM
Hi, I just wrote a test Windows Service that creates a text file on startup (please see my code below). The file is never created. Protected Overrides Sub OnStart(ByVal args() As String) Dim swLog As StreamWriter = File.CreateText("C:\myLog.txt") swLog.WriteLine("My Windo...more >>

Insert file or picture in the message box below
Posted by KELVIN TRAN at 1/13/2005 7:35:34 PM
There are anyway to insert a picture or MS Word file in this text box (Make easy for question or discussion)? Thank you very much for your help. Best regards, Kelvin Tran *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

Autocad
Posted by john m at 1/13/2005 6:55:53 PM
i want to write a vb dotnet program to see if autocad is running and if not start it then just start to manipulate the application what is the correct method to do this? can anyone point me to some sample code? thanks jm ...more >>

XML Nodes inner text
Posted by Nak at 1/13/2005 6:36:42 PM
Hi there, I am using the ImportNode method of the XMLDocument to grab a node from one document to another. Although I'm slightly confused about something, * Why does the documents events get triggered when performing a "deep" import? Presumably when performing a "deep" impo...more >>

Help Using Diagnostic.Process Object
Posted by Ram at 1/13/2005 6:14:35 PM
Hey, I'm trying to use the "gacutil" exec to register an assembly form an aspx file using the Process Object. Here's the code: Dim objProc As Process objProc = new Process() objProc.StartInfo.FileName = "gacutil.exe" objProc.StartInfo.WorkingDirectory ="c:\WINDOWS\Microsoft.NET\Fram...more >>

Does VB.NET compiler tell about not used variables?
Posted by Marty at 1/13/2005 6:10:41 PM
Hi, I would like to know if the VB.NET compiler could tell about not used variable? If yes, How do I set it? Or at least display a warning like in c++. Thanks you Marty...more >>

Memory usage
Posted by Shane Story at 1/13/2005 4:33:29 PM
Are dotnet languages just memory hogs or am I doing something wrong. I have noticed that my program is taking 7MB of ram, and some other simple programs seem to be taking a lot of ram also. I wrote a Hello World app that just opens a form, and uses msgbox "Hello World" in the form load ev...more >>

Affordable Report Generators
Posted by Mitchell Vincent at 1/13/2005 4:32:34 PM
I'm looking for something .NET-ish to use in a few applications to generate reports. Crystal is wonderful but way out of my budget. Can anyone suggest some lower cost alternatives? -- - Mitchell ...more >>

Crystal reports question
Posted by Brad at 1/13/2005 3:50:44 PM
I have just posted a variation of this question on the Crystal Reports board, but most times I do not get a reponse. I have a report in which I asked about yesterday and after working all day on this, I actually have it looking pretty good. It is displaying header information and listing t...more >>

The New thing
Posted by Morten Snedker at 1/13/2005 3:46:26 PM
What is the difference between Dim objDataSet As DataSet = New DataSet() and Dim objDataSet As New DataSet() and Dim objDataSet As DataSet() Set objDataSet = New DataSet() (if any?) Regards /Snedker...more >>

Merge String with Variables
Posted by Joe Fallon at 1/13/2005 3:39:37 PM
I know that String.Format has the ability to format a string using placeholders like {0}, {1}, {2} etc. Is there a way to make a template that uses variables like <% MyVar1 %> instead of {0}? (The sole purpose is to increase readability. I will use {0} if there is no other option.) e.g. ...more >>

Using threads to run multiple processes at Startup
Posted by IT NO[at]SPAM ECommunity at 1/13/2005 3:33:04 PM
I want to fire off threads to start retrieving File from several locations. FTP and the local network. Is it ok to start these threads on the main form load. Ex. Every day we load EDI files into a SQL server. When the main form start out can I have a thread run this process and disable the...more >>

Questions about obfuscation
Posted by Derek Martin at 1/13/2005 3:29:05 PM
So I learned all about strong naming and how that is a good thing. Then I learned the my assemblies can be decompiled with the SDK and how that was both good and bad. So I learned about obfuscation and how glorious that was. Then I learned that one has to delay sign strong named assemblie...more >>

Calling main thread from a worker thread
Posted by Chad Miller at 1/13/2005 2:42:24 PM
I know haw to call a the main thread from a worker thread in a windows form class, but how does a worker thread call its main thread from a none windows form class? Thank You. chadm@predictiveconcepts.com ...more >>

Source Code
Posted by Geoff Jones at 1/13/2005 2:03:06 PM
Hiya I believe that once a .NET exe has been created there is a way to retrieve the code used to create it. Is this true and if so how can I do it? Thanks in advance Geoff ...more >>

3rd party dual listbox control
Posted by Dave at 1/13/2005 1:32:08 PM
Hi all, After unsuccessfully trying to make my own dual listbox control out of arraylists, I decided to look for a 3rd party control. I've looked for over a week now and can't find anything but ASP.Net stuff when I need a Windows Form control. I've seen dual listbox populators in countless W...more >>

Displaying selected columns in a DdataGrid
Posted by Reza G. at 1/13/2005 1:31:04 PM
I have a datagrid on my windows form. At design time, I set the DataSource and DataMember. Then I added a TableStyle and set its MappingName to the same value as the DataMember. Finally, I created GridColumnStyle for each 3 columns that I wanted to display. But When I run this application I...more >>

with DataGrid, Used tablestyle and Grid Column Style
Posted by Reza G. at 1/13/2005 1:23:01 PM
I am creating a window forms, and placed a datagrid on it. Set the DataSource and DataMember, and I get all the column in the table (relation) shown. I used TableStyles of the DataGrid and add a new member. I set its MappingName same as DataMember. Then I use GridColumnStyle and add the...more >>

How to create a .CHM Viewer
Posted by Progalex at 1/13/2005 12:49:03 PM
Hi, I'd like to post this question: using the HelpProvider control we can be able to launch the appropriate explorer for a compiled .chm file. But..how can I create my own custom .chm viewer? I mean, I'd like to put inside a treeview all the items of the TOC. Clicking on every item I sho...more >>

How do I determine if the two rightmost elements of my string are ."
Posted by Dave at 1/13/2005 12:45:15 PM
How can I determine if the two rightmost elements of my string are ." ? Obviously, vb.net has a special use for the double-quote character, so how do I account for that. I have... if microsoft.visualbasic.right(mystring, 2) = ??????? Then I need to know what to put in place of t...more >>

How do I use Startup Object = Sub Main
Posted by Dave at 1/13/2005 12:41:35 PM
Title is pretty self explanatory. I don't want my application to start with a form loading, I want some code to be run when the application starts. Where do I put this code when I select "Sub Main" as my "Startup Object?" Thank you kindly, -Dave ...more >>

"Cast" error with VB code in .aspx page, with a twist...
Posted by roy.anderson NO[at]SPAM gmail.com at 1/13/2005 12:27:52 PM
Error is thus: "Cast from type 'DBNull' to type 'String' is not valid." Simple, right? Well, no (or at least not for me). Here's a function, followed by the calling code below: Function GetDetails(ByVal x As String, ByVal y as String) Dim conn As New SqlConnection ("server=localhost;uid=bla...more >>

Enumerating All Printers, Including Network Printers
Posted by Phil Galey at 1/13/2005 11:39:48 AM
Is there any way of enumerating all printers, including network printers = in VB.NET? =20 printing.PrinterSettings.InstalledPrinters only enumerates printers = attached to the local workstation. Thanks....more >>

DataColumn Autoincrement value
Posted by jcvoon_99 NO[at]SPAM yahoo.com at 1/13/2005 10:59:43 AM
Hi: How to reset the autoincrement value generated by DataTable ? I've master and detail table, the detail table has a autoincrement column, each time i add a new master record, i need to reset the detail table autoincrement column to start from 1. I set the dataColumn AutoIncrementSeed=...more >>

Data manipulation Question
Posted by pmclinn at 1/13/2005 10:42:27 AM
I'm creating a dll to handle a 'find and replace' function in serveral of my programs. (Runs using Word Documents) I want to pass my dll an array list that has the following pseudo structure: String(i,2) 'where i increments +1 string(i,0) will = the find value and string(i,1) will = the r...more >>

Optimization Question
Posted by cmay at 1/13/2005 10:29:04 AM
I was reading the article "Performance Optimization in Visual Basic ..NET" at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchperfopt.asp. One section states: Loading a dynamic-link library (DLL) takes a considerable amount of execution time. Bringing i...more >>

GetType
Posted by Greg Burns at 1/13/2005 9:12:23 AM
What the difference between these two? System.Type.GetType("System.Int32") and GetType(Integer) Or more specifically, why does GetType(Integer) work, but not System.Type.GetType(Integer)? What namespace is the GetType function(?) part of? I'm confused. Greg ...more >>

Multilang support
Posted by Saadi at 1/13/2005 9:03:03 AM
Hi Guys! I am a newbie to .NET but have some problems. I have been given a task by my teacher to create a multilang database system, which can store data in atleast 3 languages, Eng and Arabic (ness) and one any other language. I dont know how to do that. please any of you could help then I...more >>

Timespan and time formatting
Posted by DWalker at 1/13/2005 8:36:49 AM
In Visual Studio (Visual Basic) .NET 2002, I noticed that this: Dim Elapsed as DateTime = Now - Now [or Now() - Now()] gives a "compile time" error (error in the IDE), saying that the '-' operator is not defined for the Date datatype. On the other hand, Dim Elapsed as DateTime = Now + ...more >>

Shortcut
Posted by Viktor Zadro at 1/13/2005 8:27:48 AM
When install my vb.net project (on PC with OS win98 or win2000) with setup project, shortcut icon on desktop not display correctly. On PC with OS winXp shortcut icon display correct. P.S. Look in attach... Why? begin 666 winXP.lnk M3 ````$4`@``````P ```````$;94 ```````````````````````...more >>

One-time applications
Posted by Amjad at 1/13/2005 7:53:09 AM
Hi, Can we make in VB.NET a small application that will execute only once, after which it will uninstall itself (or delete itself)? This idea can be used to send customers a small application that will reset the password of another application on their computer, after I verified their iden...more >>

Combobox Additions at Run-Time
Posted by Chaos2651 at 1/13/2005 7:47:02 AM
I have Visual Studio .NET with all of the components installed onto it. I want to add items to a combo box at run-time through numerous subroutines. I previously did it with the combo boxes AddItem method, but in .NET's version it gives me an error, because the method no longer exists. I know ...more >>

application has generated an exception that could not be handled
Posted by rs at 1/13/2005 7:21:24 AM
Hi guys Thank you in advance for the help. I developed a simple application using vs.net 2003. running framework 1.1 sp1. the application runs fine on the development machine (win xp). I tried to deploy it on a win 2000 sp4 framework 1.1 sp1. I got the following error Reminder.exe - Common ...more >>

TextBox, DateTimePicker and OO
Posted by Art at 1/13/2005 6:37:08 AM
Hi, I'm still somewhat new to OO. I am creating a class for a TextBox because I need some specific things for it to do. That is, I'm inheriting a TextBox and putting in some properties, etc. that I need for it. Now I find I need to do something similar with a DateTimePicker. Many of the...more >>

[VB.Net/Graphics] Drawing arrows on the picturebox
Posted by kalp suth via DotNetMonster.com at 1/13/2005 5:57:53 AM
I want to create arrows using lines on a picture in the picture box. On clicking the button "btnShowAll", the image is loaded and the lines drawn. "RGSShowAll()" calls "DrawObjs()" which does the actual drawing work. But after displaying all the arrows in a flick, the arrows disappers. I have d...more >>

Thanks for your attention,let's strive together
Posted by chen jin cai via DotNetMonster.com at 1/13/2005 3:36:21 AM
I have re-entried. oh,sorry,I am poor in english,and so in my VB.NET. Thank you for your reversion, My purpose is :add ( or remove) a member(s) into a WorkGroup in my PC. And it can browse only in hereinafter codes,But it is not work with Active Diretory nymphlike,but you may also be successfu...more >>

Deployment options---no wizrard
Posted by joisey NO[at]SPAM mindspring.com at 1/13/2005 2:47:58 AM
I am using VB.net 2002 Standard Edition, so I do not have a deployment wizard, I use the template. There are two features I would like to add. 1) the presentation of a Eula message for selection ok or cancel before the .net Windows installer begins expanding files, 2) the ability to ...more >>

Clear Form
Posted by David A. Osborn at 1/13/2005 2:27:28 AM
Is there an easy way to dynamically delete all the controls on a form without knowing exactly what the controls are? ...more >>

Passing AddressOf a function to constructor
Posted by David A. Osborn at 1/13/2005 2:09:21 AM
I need to pass the address of a function to the contructor of a class when I create an instance of it so that in the new instance I can dynamically hookup a handler by doing the following: AddHandler ButtonNew.Click, AddressOf My_Passed_Function I thought I could use a delegate but that do...more >>

AD,It is so hard?
Posted by chen jin cai via DotNetMonster.com at 1/13/2005 2:07:15 AM
I supposed to add member(s) to or delete member(s) from one new group created by me ,which is similar to Administrators and Power Users in global group which in my computer by VB.NET,there are my codes to list the member(s) from one group in my computer,as follows: Dim Group Dim User ...more >>

How to read XML into strongly typed dataset?
Posted by Tee at 1/13/2005 1:38:16 AM
Hi, I have an XML file with data, and I have created a .XSD with an element. How do I read XML into the designed element? Thanks, Tee ...more >>

Help,I am a abecedarian,AD and global group problem in VB.NET
Posted by chen jin cai via DotNetMonster.com at 1/13/2005 1:34:26 AM
I supposed to add member(s) to or delete member(s) from one new group created by me ,which is similar to Administrators and Power Users in global group which in my computer by VB.NET,there are my codes to list the member(s) from one group in my computer,as follows: Dim Group Dim User...more >>

Urgent!!!!!!!!!!!!!
Posted by chen jin cai via DotNetMonster.com at 1/13/2005 12:59:23 AM
Dear Sir: I attempt to add member(s) to or delete member(s) from one new group(created by me ,which is similar to ? Administrators? and ?Power Users? in localgroup which in my computer) by VB.NET,there are my codes to list the member(s) from one group in my computer,as follows: Dim Grou...more >>

How to make dll appear in .Net tag when Add References
Posted by chanmmn at 1/13/2005 12:30:17 AM
How to make dll appear in .Net tag when Add References? Please help chanmm ...more >>


DevelopmentNow Blog