Checked List Box checked item display problem

gopal2006

Well-known member
Joined
Feb 1, 2006
Messages
63
Programming Experience
1-3
I am checking the item in the checked list box. There are many items in the check box. If the item checked is at the bottom it should be displayed. i.e The focus should go to the checked item. Item is checekd after it is retrieved from the table. how to solve this problem?:confused:
 
VB.NET:
[SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] count [/SIZE][SIZE=2][COLOR=#0000ff]As [/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Integer[/COLOR][/SIZE][SIZE=2] = CheckedListBox1.CheckedIndices.Count[/SIZE]
[SIZE=2][COLOR=#0000ff]If[/COLOR][/SIZE][SIZE=2] count > 0 [/SIZE][SIZE=2][COLOR=#0000ff]Then [/COLOR][/SIZE][SIZE=2]CheckedListBox1.SelectedIndex = CheckedListBox1.CheckedIndices.Item(count - 1)[/SIZE]
 
Back
Top