How to manual scroll in a listbox

I need to how to scoll at listbox, by using to bottons insted of the scroll bars ?

Thank you
LPD
lpdAsked:
Who is Participating?
 
ronit051397Connect With a Mentor Commented:
Use WM_VSCROLL Message. For example to scroll the list one page down write:
SendMessage(ListBox1.Handle,  WM_VSCROLL,  SB_PAGEDOWN,  0);

0
 
viktornetCommented:
What ronit told you is exactly right :+)

SendMessage(ListBox1.Handle, WM_VSCROLL, 1, 0);//Do you see the 1..that's how much to scroll at one time...For horizontal scroll use WM_HSCROLL

Regards,
Viktor Ivanov
0
 
lpdAuthor Commented:
Thank you, it works very fine

LPD :-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.