CheckedListbox.SelectedItem.ToText Doesn't Work
Posted on 2005-03-28
I have a CheckedListBox in VB.NET. I am trying to load the checked items into a string with the following code:
Dim sLocal As String
Dim iLocal, iLocalCounter As Integer
iLocal = .SelectedItems.Count
For iLocalCounter = 0 To iLocal
If sLocal <> "" Then
sLocal = sLocal & "' "
sLocal = sLocal & .SelectedItem.ToString
Instead of getting the selected item, I get:
Also, intellisense does not offer "ToText" as a method when I am typing, only "GetType"
I'm probably missing something easy!