I want to get name of the checkboxes in checkedlistbox control.
By this following code I am only able to get the Text associated with the checkboxes :
Dim sb As New System.Text.StringBuilder
Dim CheckedList =
(
From Item In clbCheckedListBox.Items.Cast(Of String)() _
.Where(Function(xItem, Index) clbCheckedListBox.GetItemChecked(Index))
Select Item
).ToList
Example: I want chk_01 instead of Hello World
(checklistbox name = clbCheckedListBox
One of the checkbox name = chk_01
chk_01 checkbox contains text Hello World )
P.s. : I am getting Text of only checked checkboxes by the above code
(I want same but with the checkbox Name)
Please Help...Thanks In Advance..