Hi,
I am trying to extract the selected information from a listbox and I can't get what I want. For a test, I tried this:
For iCount = 0 To lstEmail.Items.Count - 1
If lstTest.GetSelected(iCount) = True Then
MsgBox(lstTest.SelectedItem.ToString)
End If
Next
I select one record and press a button. the code is called. The MSGBOX returns System.Data.DataRowView, instead of the selected item, which is ABC. I do not know if it matters, but this listbox is loaded with a DataMember from an Access database.
Thanks for your help. In VB that was easy, but I cannot figure that out in .NET
Thanks for your help.
Mal'chik![[bigglasses] [bigglasses] [bigglasses]](/data/assets/smilies/bigglasses.gif)
I am trying to extract the selected information from a listbox and I can't get what I want. For a test, I tried this:
For iCount = 0 To lstEmail.Items.Count - 1
If lstTest.GetSelected(iCount) = True Then
MsgBox(lstTest.SelectedItem.ToString)
End If
Next
I select one record and press a button. the code is called. The MSGBOX returns System.Data.DataRowView, instead of the selected item, which is ABC. I do not know if it matters, but this listbox is loaded with a DataMember from an Access database.
Thanks for your help. In VB that was easy, but I cannot figure that out in .NET
Thanks for your help.
Mal'chik
![[bigglasses] [bigglasses] [bigglasses]](/data/assets/smilies/bigglasses.gif)