How can i make the listbox control to scroll faster by removing the SMOOTH ANIMATION while i change the listindex property.
Printable View
How can i make the listbox control to scroll faster by removing the SMOOTH ANIMATION while i change the listindex property.
Try this:
SendMessage ListBox1.hWnd, LB_SETTOPINDEX, newItemIndex, 0
ListBox1.ListIndex = newItemIndex
(For decl's and constants go look up an API reference.)
It didn't work, that does only scroll the listbox without having to move the listindex but it didn't remove the smooth animation. Any other ideas?
Best thing I can think of is to just turn off smooth scrolling (it's an option somewhere in the Display control panel applet)
Hmmmm, I don't like that solution. Well, i think i'll skip this, although if anyone still have idéas, post them :)