Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / September 2005

Tip: Looking for answers? Try searching our database.

Capture mouse scroll-wheel

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JezB - 24 Sep 2005 22:45 GMT
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 ?
Herfried K. Wagner [MVP] - 24 Sep 2005 22:58 GMT
"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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.