473,779 Members | 2,092 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2808
"Nathan" <nk************ *********@softh ome.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*******@free net.de> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
"Nathan" <nk************ *********@softh ome.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************ *********@softh ome.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=usS XSNgzDHA.3216%4 0TK2MSFTNGP11.p hx.gbl>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #5
"Nathan" <nk************ *********@softh ome.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************ *********@softh ome.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=usS XSNgzDHA.3216%4 0TK2MSFTNGP11.p hx.gbl>

--
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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
6208
by: AccessWhiz | last post by:
I have been trying desperately for the past few days to figure out why the MouseWheel solution that I retrieved from the Lebans website won't work. The access database included with the solution responds to the the wheel regardless of the button. In my application I get an error message when I try to set the class. I'm hoping that I can get some help (cause I feel really stupid right now). Before we go too much further, I am using a...
1
3434
by: jv | last post by:
I have quite a few of continuous form and subform where I do allow scroll bars. I run into problems with the mouse wheel whenever the data on the form does not take up the whole page. In this instance, whenever a user uses the mouse wheel to scroll down, the first record disappears off the screen and they can't get it back unless they click on the Refresh button or Page Up. The mouse wheel never scroll back up to the first record. ...
6
2749
by: Susan Bricker | last post by:
Hi. Does anyone have a clue why my mouse wheel stopped working while I was working on the VB behind a form in MS/Access? I would swear that the mouse wheel was working a short time ago. I've checked that it isn't a malfunction of the mouse by going to other applications and trying the wheel. It works just fine. This is very frustrating. It's bad enough that I have a logic problem, but now my mouse is not working while trying to...
13
2310
by: James Bond | last post by:
Hello. My 80+ year old father has recently decided to get his first computer. Due to his age (and I suspect lack of playing pong as a child like I did) he lacks the manual dexterity to use a mouse well. He is frequently missing the left mouse button and hitting the right, or less often the middle (wheel) buttons. While he is very slowly getting better with practice, the frustration level is high for him as a result of this (he gets very...
4
2733
by: ML | last post by:
I am trying to use the mouse wheel event on a numeric input box to allow the use to scroll to inc/dec the value by 1. The issue I am having is that the delta value returned seems to be off. From my understanding the delta is the number of detents the mouse has moved. The standard detent is supposedly 120 for one notch of the wheel, however when I turn the wheel 1 click I get 240. Is there someway to determine the actual detent setting...
7
1879
by: tommaso.gastaldi | last post by:
This is a curious question. I'd like to know your opinion. I am attaching a drawing resize to a mouse wheel event. Frankly, to me was most natural that, if I mouse wheel UP, the shape gets bigger, while it gets smaller when mouse wheel DOWN. I just noticed that Photoshop does the opposite. Any though about the most natural way (or perhaps are both "natural") ?
7
2989
by: Martijn Mulder | last post by:
When the mouse is over a picture, the user can grow or shrink it by rolling the central mouse wheel. What behavior is typical when the user rolls the wheel away. Will the picture grow or shrink then?
3
3049
by: killbill123 | last post by:
Hi, I want to count the mouse wheel rotations in javascript. I searched on google and only found that how to track delta -1 and +1 base on the up mouse wheel and down mouse wheel. I want how can i correctly count the wheel rotation in one mouse wheel or how to count wheel rotation. Need help please urgently.........??
3
1880
by: West55 | last post by:
I have an Access 2003 database I developed for one of my departments. I have been using Stephen Lebans' MouseWheelOnOff system to turn off the Mouse Wheel without any issues since I developed the database. Recently my IT department replaced all the PCs and now I am having issues with the Mouse Wheel Off. If one of the radio buttons has focus, the mouse wheel works and scrolls to the next record. If one of the text boxes has focus, the mouse...
0
10305
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8959
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6724
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5503
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2867
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.