Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scroll to first checked item in a CheckedListBox

Tags:

c#

winforms

How do I programmatically scroll to the first checked item in a CheckedListBox?

like image 925
code4life Avatar asked Jun 29 '10 13:06

code4life


2 Answers

Use TopIndex property: http://msdn.microsoft.com/en-us/library/system.windows.forms.listbox.topindex.aspx

like image 115
František Žiačik Avatar answered Sep 24 '22 13:09

František Žiačik


Maybe the ListBox.TopIndex property helps here:

Gets or sets the index of the first visible item in the ListBox.

like image 44
tanascius Avatar answered Sep 23 '22 13:09

tanascius