Click here to Skip to main content
15,912,897 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: sql update queries from within VB Pin
cj433114-Nov-07 8:22
cj433114-Nov-07 8:22 
QuestionTime Picker Pin
AAGTHosting13-Nov-07 9:30
AAGTHosting13-Nov-07 9:30 
AnswerRe: Time Picker Pin
Christian Graus13-Nov-07 10:28
protectorChristian Graus13-Nov-07 10:28 
GeneralRe: Time Picker Pin
Tom Deketelaere13-Nov-07 20:59
professionalTom Deketelaere13-Nov-07 20:59 
QuestionButtons Pin
roger689713-Nov-07 8:47
roger689713-Nov-07 8:47 
AnswerRe: Buttons Pin
pmarfleet13-Nov-07 9:18
pmarfleet13-Nov-07 9:18 
GeneralRe: Buttons Pin
dexter970313-Nov-07 21:39
dexter970313-Nov-07 21:39 
GeneralRe: Buttons Pin
pmarfleet13-Nov-07 21:46
pmarfleet13-Nov-07 21:46 
It's pretty obvious that this code isn't going to work if there are no items in the listbox.

listbox1.SelectedIndex will be -1 if there are no items in the list. Don't execute the second line of code if this is the case.

Paul Marfleet

"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush


GeneralRe: Buttons Pin
dexter970314-Nov-07 0:02
dexter970314-Nov-07 0:02 
GeneralRe: Buttons Pin
pmarfleet14-Nov-07 0:06
pmarfleet14-Nov-07 0:06 
QuestionDatabase connection Pin
s3rro13-Nov-07 8:30
s3rro13-Nov-07 8:30 
AnswerRe: Database connection Pin
pmarfleet13-Nov-07 9:15
pmarfleet13-Nov-07 9:15 
QuestionWindows XP and Vista Compatibility Using VB.NET & SQL Server Express Pin
AAGTHosting13-Nov-07 7:07
AAGTHosting13-Nov-07 7:07 
AnswerRe: Windows XP and Vista Compatibility Using VB.NET & SQL Server Express Pin
DigiOz Multimedia13-Nov-07 13:13
DigiOz Multimedia13-Nov-07 13:13 
GeneralRe: Windows XP and Vista Compatibility Using VB.NET & SQL Server Express Pin
AAGTHosting13-Nov-07 13:17
AAGTHosting13-Nov-07 13:17 
QuestionProblem reading data in text file into a listbox when program loads Pin
SilentCodingOne13-Nov-07 6:21
SilentCodingOne13-Nov-07 6:21 
AnswerRe: Problem reading data in text file into a listbox when program loads Pin
C1AllenS13-Nov-07 6:52
C1AllenS13-Nov-07 6:52 
GeneralRe: Problem reading data in text file into a listbox when program loads Pin
SilentCodingOne13-Nov-07 6:58
SilentCodingOne13-Nov-07 6:58 
GeneralRe: Problem reading data in text file into a listbox when program loads Pin
C1AllenS13-Nov-07 7:48
C1AllenS13-Nov-07 7:48 
GeneralRe: Problem reading data in text file into a listbox when program loads Pin
SilentCodingOne13-Nov-07 10:02
SilentCodingOne13-Nov-07 10:02 
Questionpassing more than 1 parameter in thread Pin
_tasleem13-Nov-07 6:06
_tasleem13-Nov-07 6:06 
AnswerRe: passing more than 1 parameter in thread Pin
Guffa13-Nov-07 6:26
Guffa13-Nov-07 6:26 
QuestionStart up module for VB.NET Windows Application?? Pin
barney_197213-Nov-07 5:25
barney_197213-Nov-07 5:25 
AnswerRe: Start up module for VB.NET Windows Application?? Pin
AliAmjad13-Nov-07 5:30
AliAmjad13-Nov-07 5:30 
GeneralRe: Start up module for VB.NET Windows Application?? Pin
barney_197213-Nov-07 5:56
barney_197213-Nov-07 5:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.