Click here to Skip to main content
15,905,420 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: ir receiver Pin
Dave Kreskowiak10-Jul-07 3:16
mveDave Kreskowiak10-Jul-07 3:16 
QuestionFor and next loop... problem Pin
smguc9-Jul-07 12:27
smguc9-Jul-07 12:27 
AnswerRe: For and next loop... problem Pin
Luc Pattyn9-Jul-07 12:38
sitebuilderLuc Pattyn9-Jul-07 12:38 
GeneralRe: For and next loop... problem Pin
smguc9-Jul-07 12:58
smguc9-Jul-07 12:58 
GeneralRe: For and next loop... problem Pin
Luc Pattyn9-Jul-07 13:13
sitebuilderLuc Pattyn9-Jul-07 13:13 
GeneralRe: For and next loop... problem Pin
smguc9-Jul-07 13:27
smguc9-Jul-07 13:27 
GeneralRe: For and next loop... problem Pin
Luc Pattyn9-Jul-07 13:32
sitebuilderLuc Pattyn9-Jul-07 13:32 
AnswerRe: For and next loop... problem Pin
TwoFaced9-Jul-07 13:38
TwoFaced9-Jul-07 13:38 
The listbox contains objects which could be anything. ListBoxUpgrade.SelectedItem(i) will return whatever text the ToString method returns. For most objects this is the type of object it is. Because you've bound your listview you actually have a listview full of DataRowView objects. This is why the ToString method is returning System.Data.DataRowView. If you want to get the corresponding text of the item (the text being displayed in the listbox) you can use the GetItemText method.
For Each obj As Object In ListBox1.SelectedItems
    Console.WriteLine(ListBox1.GetItemText(obj))
Next

GeneralRe: For and next loop... problem Pin
Luc Pattyn9-Jul-07 13:41
sitebuilderLuc Pattyn9-Jul-07 13:41 
GeneralRe: For and next loop... problem Pin
smguc9-Jul-07 13:56
smguc9-Jul-07 13:56 
GeneralRe: For and next loop... problem Pin
TwoFaced9-Jul-07 14:00
TwoFaced9-Jul-07 14:00 
QuestionLoading sql record into a variable Pin
tazbird9-Jul-07 11:28
tazbird9-Jul-07 11:28 
AnswerRe: Loading sql record into a variable Pin
Luc Pattyn9-Jul-07 11:52
sitebuilderLuc Pattyn9-Jul-07 11:52 
GeneralRe: Loading sql record into a variable Pin
MidwestLimey9-Jul-07 12:49
professionalMidwestLimey9-Jul-07 12:49 
GeneralRe: Loading sql record into a variable Pin
Luc Pattyn9-Jul-07 13:09
sitebuilderLuc Pattyn9-Jul-07 13:09 
GeneralRe: Loading sql record into a variable Pin
MidwestLimey10-Jul-07 4:45
professionalMidwestLimey10-Jul-07 4:45 
JokeRe: Loading sql record into a variable Pin
MidwestLimey9-Jul-07 12:51
professionalMidwestLimey9-Jul-07 12:51 
GeneralRe: Loading sql record into a variable Pin
tazbird9-Jul-07 13:58
tazbird9-Jul-07 13:58 
GeneralRe: Loading sql record into a variable Pin
Luc Pattyn9-Jul-07 14:53
sitebuilderLuc Pattyn9-Jul-07 14:53 
GeneralRe: Loading sql record into a variable Pin
tazbird9-Jul-07 16:02
tazbird9-Jul-07 16:02 
QuestionPassword Recovery? Pin
shrihit9-Jul-07 10:28
shrihit9-Jul-07 10:28 
AnswerRe: Password Recovery? Pin
Christian Graus9-Jul-07 15:32
protectorChristian Graus9-Jul-07 15:32 
AnswerRe: Password Recovery? Pin
Sathesh Sakthivel9-Jul-07 15:45
Sathesh Sakthivel9-Jul-07 15:45 
GeneralRe: Password Recovery? Pin
shrihit10-Jul-07 3:13
shrihit10-Jul-07 3:13 
QuestionHow to block the record Delete when canceled? Pin
Richard Jones9-Jul-07 9:14
Richard Jones9-Jul-07 9:14 

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.