views:

138

answers:

0

I have a winforms 2.0 app with a listbox in it ( OwnerDraw)
I want to detect when someone is scrolling or clicks on the scroll down thingy ,so that I can stop them from scrolling ( I have tried getting rid of the scrollbar altogether and have failed on Vista )
is there anyway to tell when my listbox is being scrolled, I cant seem to find a "OnScroll" to handle

Re getting rid fo the scrollbar: I have tried both using pInvoke for ShowScrollBar and I have used a CreateParams override '

http://stackoverflow.com/questions/1355904/listbox-scrolling
Both techniques work on XP but on not on Vista no idea why