Scroll a Listbox programmatically  

Send By: Q3 Team
Web : www.q3.nu
Email: dlib@q3.nu
Date: 17/12/99

Tip accessed 687 times

 


Its easy sending the LB_SETTOPINDEX message:

An example:


 	SendMessage(ListBox1.Handle,lb_SetTopIndex,10,0);



Or this another:


 	ListBox1.Perform(lb_SetTopIndex,10,0);



The 10 of the example indicate what item of the list we want as first element (remember that the first
element is the zero).