"JezB" <jezbroadsword@blueyonder.co.uk> schrieb:
>I have a windows application (c#) which does not display any scroll bar (I
>really don't want it to!). However, I want to capture when the mouse
>scroll-wheel is used to "page-through" some of my data, without recourse to
>a scroll-bar. Can I capture when the mouse scroll-wheel is used? If so how
>?
Override the control's 'OnMouseWheel' method.

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Lloyd Dupont - 26 Sep 2005 07:54 GMT
> Override the control's 'OnMouseWheel' method.
it should also be told that only the focused control will get mouse wheel
event
JezB - 26 Sep 2005 09:19 GMT
Well I ended up using the MouseWheel event rather than the OnMouseWheel
method: I found this by browsing the documentation, but strangely enough the
event did not appear in the intellisense list, which is why I missed it.
Thanks.
> "JezB" <jezbroadsword@blueyonder.co.uk> schrieb:
>>I have a windows application (c#) which does not display any scroll bar (I
[quoted text clipped - 4 lines]
>
> Override the control's 'OnMouseWheel' method.
Chris Dunaway - 26 Sep 2005 18:37 GMT
> event did not appear in the intellisense list, which is why I missed it.
Make sure you have "Hide Advanced members" in the setting turned off.
JezB - 30 Sep 2005 09:22 GMT
Thanks, but where is this setting ? There are so many under Options I can't
find it !
>> event did not appear in the intellisense list, which is why I missed it.
>
> Make sure you have "Hide Advanced members" in the setting turned off.
Chris Dunaway - 30 Sep 2005 14:13 GMT
Tools > Options > Text Editor > Basic > Hide Advanced Members