471,853 Members | 905 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,853 software developers and data experts.

Mouse wheel

Hi,

Can someone lead me to info on detecting and using the mouse button? All I
can find in the MSDN docs is that you use e.Delta, but it doesn't explain in
how. I tried detecting the roll of the wheel in the frm.MouseDown, but it
didn't detect it.

Thank for the help.
Nov 20 '05 #1
13 2657
"Nathan" <nk*********************@softhome.net> schrieb

Can someone lead me to info on detecting and using the mouse button?
I guess, you mean the mouse wheel, not mouse button?
All I can find in the MSDN docs is that you use e.Delta, but it
doesn't explain in how.
e.delta returns the amount the wheel has been turned. You get 'e' in
OnMouseWheel or the MouseWheel event.
I tried detecting the roll of the wheel in
the frm.MouseDown, but it didn't detect it.


Mousedown is raised when a mouse button gets pressed, not when the wheel has
been turned.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
Ok, maybe it's because it's too early in the morning, or maybe it's because
VS 2002 doesn't have a MouseWheel event, but I can't find it anywhere. I've
even searched for MouseWheel and OnMouseWheel in the help and came up with
nothing.
"Armin Zingler" <az*******@freenet.de> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
"Nathan" <nk*********************@softhome.net> schrieb

Can someone lead me to info on detecting and using the mouse button?
I guess, you mean the mouse wheel, not mouse button?
All I can find in the MSDN docs is that you use e.Delta, but it
doesn't explain in how.


e.delta returns the amount the wheel has been turned. You get 'e' in
OnMouseWheel or the MouseWheel event.
I tried detecting the roll of the wheel in
the frm.MouseDown, but it didn't detect it.


Mousedown is raised when a mouse button gets pressed, not when the wheel

has been turned.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3
Cor
Hi Nathan,

http://msdn.microsoft.com/library/de...wheeltopic.asp

I hope this helps?

Cor
Ok, maybe it's because it's too early in the morning, or maybe it's because VS 2002 doesn't have a MouseWheel event, but I can't find it anywhere. I've even searched for MouseWheel and OnMouseWheel in the help and came up with
nothing.

Nov 20 '05 #4
* "Nathan" <nk*********************@softhome.net> scripsit:
Ok, maybe it's because it's too early in the morning, or maybe it's because
VS 2002 doesn't have a MouseWheel event, but I can't find it anywhere. I've
even searched for MouseWheel and OnMouseWheel in the help and came up with
nothing.


Mhm... I can see it inside the IDE and the documentation and I remember
I used it with VS.NET 2002 too. Are you sure advanced members are
shown?

<http://www.google.de/groups?selm=usSXSNgzDHA.3216%40TK2MSFTNGP11.phx.gb l>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #5
"Nathan" <nk*********************@softhome.net> schrieb
Ok, maybe it's because it's too early in the morning, or maybe it's
because VS 2002 doesn't have a MouseWheel event, but I can't find it
anywhere. I've even searched for MouseWheel and OnMouseWheel in the
help and came up with nothing.


Right, in VB 2002 a Form doesn't have a mousewheel event, but you can
override OnMouseWheel. Override means in a derived class.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #6
I found it. I was looking for MouseWheel by selecting Base Class Events in
the top left drop-down box, then looking for MouseWheel in the other. But I
typed out the event handler and it was there; now I have it working. Thanks
for the help.

Nathan
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bu************@ID-208219.news.uni-berlin.de...
* "Nathan" <nk*********************@softhome.net> scripsit:
Ok, maybe it's because it's too early in the morning, or maybe it's because VS 2002 doesn't have a MouseWheel event, but I can't find it anywhere. I've even searched for MouseWheel and OnMouseWheel in the help and came up with nothing.


Mhm... I can see it inside the IDE and the documentation and I remember
I used it with VS.NET 2002 too. Are you sure advanced members are
shown?

<http://www.google.de/groups?selm=usSXSNgzDHA.3216%40TK2MSFTNGP11.phx.gb l>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #7
My mouse wheel does not work in VB6 Pro Edit Window, it works every where else, anyone know why?
Nov 20 '05 #8
My mouse wheel does not work in VB6 Pro Edit Window, it works every where else, anyone know why?
Nov 20 '05 #9
There is a fix for the mouse wheel problem in VB6 at :- http://www.joebott.com/vb6scrollwheel.htm
Nov 20 '05 #10
There is a fix for the mouse wheel problem in VB6 at :- http://www.joebott.com/vb6scrollwheel.htm
Nov 20 '05 #11
My mouse wheel does not work in VB6 Pro Edit Window, it works every where else, anyone know why?
Nov 20 '05 #12
There is a fix for the mouse wheel problem in VB6 at :- http://www.joebott.com/vb6scrollwheel.htm
Nov 20 '05 #13
There is a fix for the mouse wheel problem in VB6 at :- http://www.joebott.com/vb6scrollwheel.htm
Nov 20 '05 #14

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by AccessWhiz | last post: by
4 posts views Thread by ML | last post: by
7 posts views Thread by tommaso.gastaldi | last post: by
7 posts views Thread by Martijn Mulder | last post: by
NeoPa
reply views Thread by NeoPa | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.