i need to know if an item is checked / unchecked but cannot find out how to do this in .net
in vb6 the code was somthing like
lstCheckList.Checked(i)
this would return true or false but how do i do this in dot net ?
Printable View
i need to know if an item is checked / unchecked but cannot find out how to do this in .net
in vb6 the code was somthing like
lstCheckList.Checked(i)
this would return true or false but how do i do this in dot net ?
try thisQuote:
Originally posted by OptimusPrime
i need to know if an item is checked / unchecked but cannot find out how to do this in .net
in vb6 the code was somthing like
lstCheckList.Checked(i)
this would return true or false but how do i do this in dot net ?
VB Code:
Dim i As Integer = CheckedListBox1.SelectedIndex() Dim bool As Boolean If i = 0 Then MsgBox("0") bool = True ElseIf i = 1 Then MsgBox("1") bool = True ElseIf i = 2 Then MsgBox("2") bool = True Else MsgBox("none checked") bool = False End If
many thanks but i decided to use a grid instead of the checked list box ;)