Does anyone know how to reference the scroll up and scroll down event for a listbox control? I want to place two buttons on my form, one that will execute the scroll up event for the listbox and the other for the scroll down event.
Thanks,
Larry
Printable View
Does anyone know how to reference the scroll up and scroll down event for a listbox control? I want to place two buttons on my form, one that will execute the scroll up event for the listbox and the other for the scroll down event.
Thanks,
Larry
LB_SETTOPINDEX message can be used to ensure that a list item is visible,,
but I don't know any messages to scroll the List.
I'll try to look it up .. interesting issue !!!
hi,
look in MSDN for Get/SetScrollInfo or if you don't want to send messages you can have your local position counter and by button click increase/decrease it and select the item in the listbox and this will automatically scroll the listbox up/down.
kind of regards,
typecast
Thank you for your responses got it working with your helop:D :thumb: