Groups | Blog | Home


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 > february 2007 > threads for thursday february 22

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

why is this code executed twice?
Posted by Bob at 2/22/2007 11:29:11 PM
Hi, (already posted but unsolved) this code inserts twice the same record. I thin it is due to the "Selet Scope_Identity" in the sqlcommand. If i remove the Select part, the inserts occurs only once. If i remove the line "comd.ExecuteNonQuery()", then the inserts also occurs once. Is there...more >>


Proper Design
Posted by John at 2/22/2007 8:51:54 PM
Hi there, I am writing a simple program that will connect to database. Database has 2 tables, let's call them father and child. This is one to many relationship. I would like to create corresponding classes for each table. Each class would have functions Insert, Edit, Delete I would like to ...more >>

Creating Printer Port in VB
Posted by Terry Olsen at 2/22/2007 8:45:46 PM
I need to create a file printer port. I can do it using the PRNADMIN.DLL like so: Public Sub CreateFilePort(ByVal FilePath As String) Dim PRNADMIN As New PRNADMINLib.PrintMaster Dim port As New PRNADMINLib.Port port.PortName = FilePath port.PortType = 3 'Standard Local Port ...more >>

Europe Tests Established Chemicals on Millions of Animals
Posted by TONY at 2/22/2007 4:14:39 PM
Tony Nottingham England 22 February 2007 TO: All People Who Care I am a private individual posting this message to help Laboratory Animals and us all. I apologize if this seems out of place in this group but I think you need to know this. A new European Chemical Te...more >>

XmlDocument.Load() crashes designer but works anyway?
Posted by DanThMan at 2/22/2007 3:28:08 PM
The following code works when I debug and when I install the software and run the .exe, but if I try to open the form in the designer (which causes this code to run), I get an error: Private Sub LoadTestSettings() Dim rootPath As String Dim eventHandler As ValidationEventHandler ...more >>

make checkBox ReadOnly wihtout Enabled = False? VB2005
Posted by Rich at 2/22/2007 3:22:44 PM
How can I make a checkbox control ReadOnly - can't check or uncheck without having to set the Enabled Property to False? VB2005 I looked at the property sheet for the Checkbox control but did not see any property that looked like ReadOnly. Any suggestions appreciated. Thanks, Rich...more >>

Scheduling movies in a database
Posted by BenCoo at 2/22/2007 3:08:58 PM
Hello, I have a ProgramItem-class as follow: mItemID as Integer mDtg as shortDateTime mMovieID as Integer (linked to a ICollection of Movies from a table Movies) mTheaterID as Integer (linked to a ICollection Theaters from a table Theaters) And a Server 2005 TSQL-tabe...more >>

loading FAXCOMEXLib
Posted by Rick at 2/22/2007 2:51:13 PM
VS.NET 2005 I am developing a fax routine in a NET program using the FAXCOMExLib.dll Everything works as planned when I run from my development machine. When I put the program on the server and run I get the following message: Could not load file or assembly 'Interop.FAXCOMEXLib, Version...more >>



Array Help
Posted by Playa at 2/22/2007 11:46:39 AM
I am getting the following error when I try to write a value to my array. An unhandled exception of type 'System.NullReferenceException' occurred in EmpPrinting.exe Additional information: Object reference not set to an instance of an object. This error only occurs when I don't include an i...more >>

Better way to load user controls into panel in Windows app?
Posted by Ronald S. Cook at 2/22/2007 11:34:38 AM
I lost my last post, but I'm looking for a better way to manage loading user controls (that are essentially forms) in a Windows app. In my current design, I have a ListBar in which the user selects an item. I then call a sub to loop through and remove any user control that may exist in th...more >>

Correct syntax in treeview attributes
Posted by Nach at 2/22/2007 10:25:30 AM
For Each tn As TreeNode In TreeView1.SelectedNode.Nodes *** If tn.ForeColor = Color.Blue Then *** Does not like above line. Can you give the correct syntax ??? I = I + 1 End If Next tn Also in Treeview we have the after select as shown b...more >>

In PictureBox click event and need to know which button was pressed
Posted by active at 2/22/2007 9:53:31 AM
I'm in the PictureBox click event and I need to know which button was pressed. I'm sure I once saw a property in Form or SystemInformation or someplace that system wide that enabled one to determine which button is down. But now that I need it I can't find it. Maybe it was in Window API...more >>

which vb newsgroup
Posted by dbahooker NO[at]SPAM hotmail.com at 2/22/2007 9:19:09 AM
I don't understand why there are THREE different newsgroups and there is only one 'VB'. that is VB 2005. WHY? microsoft.public.dotnet.vb.general microsoft.public.dotnet.languages.vb microsoft.public.vb ...more >>

which vb newsgroup
Posted by dbahooker NO[at]SPAM hotmail.com at 2/22/2007 9:19:06 AM
I don't understand why there are THREE different newsgroups and there is only one 'VB'. that is VB 2005. WHY? microsoft.public.dotnet.vb.general microsoft.public.dotnet.languages.vb microsoft.public.vb ...more >>

Bookmark All in entire solution gives errror - can you verify by running this simple test?
Posted by ImageAnalyst at 2/22/2007 8:29:08 AM
Try this: 1) In the code editor, double click some word. 2) Type control-F to bring up the search window. 3) Set the "Look in" drop down box to be "Entire Solution" 4) Click the "Bookmark All" button. 5) Get error message. What we (two different systems) observe is an error message saying "...more >>

debug output / clearing window contents
Posted by Zytan at 2/22/2007 7:34:10 AM
The Immediate Window is filled with debugging output from previous runs. Besides manually right clicking and clearing it, is there a programmatic way of doing this? Should I create and use a console window instead and put my debugging output there? What's the best way to show debugging inf...more >>

Add compilation time and date to project
Posted by Yaniv at 2/22/2007 4:29:11 AM
Hi I would like to add form with version data like version number and compilation time and date. I would like the time and date to be added automatically to my project. How can I do that? (I can't use a function ehich gives the current time and date bcause it won't give the compilation ti...more >>

Using stored procedures to insert values into databse
Posted by Sirisha at 2/22/2007 3:19:01 AM
Hi, I am inserting values into databse using sqlserver stored procedures. i wrote stored preocedure,but in codebehind file(.vb file) i dont know how to pass the parameters, i got error message like this "System.Data.SqlClient.SqlException: Procedure or Function 'sp_insert' expects parame...more >>

SortedList (Dates) with Duplicate Keys
Posted by ShaneO at 2/22/2007 12:00:00 AM
VB.NET 2005: I need to sort an array of Customer details based on transaction dates. If I use a SortedList the obvious problem is that it does not support duplicate keys. Does anyone have a suggestion (or routine) to achieve this type of date sort? Thanks in advance for your assista...more >>

Adding 3rd Party OCX To WinForm
Posted by Chip Pearson at 2/22/2007 12:00:00 AM
I'm sure that there is a simple answer but I can't find it. I need a third-part ActiveX control on a form in VB.NET 2005. I can't find anything on the built-in Forms Toolbox to add a new control nor can I find anything in commandbar Customize dialog to add a new control to a form. In the p...more >>


DevelopmentNow Blog