Mouse wheel

  • Thread starter Thread starter Nathan
  • Start date Start date
N

Nathan

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.
 
Nathan said:
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.
 
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.
 
Nathan said:
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.
 
* "Nathan said:
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/[email protected]>
 
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
 
My mouse wheel does not work in VB6 Pro Edit Window, it works every where else, anyone know why?
 
Back
Top