473,379 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Mousewheel event...

I seem to be missing something... I want to use a mousewheel event in my
VB.NET app... and there's a lot of example code on the net showing how to use
the mousewheel event... and the .NET docs discuss the mousewheel event...

but there doesn't seem to BE a mousewheel event. in VS 2003 or 2005, in C#
or in VB.NET... and on the couple systems I've checked. I can't find a
single control that gives me a "MouseWheel" event option in it's properties.

Anyone see this before... what the heck am I doing wrong?
Aug 28 '06 #1
3 3566
How about Control.MouseWheel?

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

It takes a tough man to make a tender chicken salad.
"Dave K" <Da*****@community.nospamwrote in message
news:AD**********************************@microsof t.com...
>I seem to be missing something... I want to use a mousewheel event in my
VB.NET app... and there's a lot of example code on the net showing how to
use
the mousewheel event... and the .NET docs discuss the mousewheel event...

but there doesn't seem to BE a mousewheel event. in VS 2003 or 2005, in
C#
or in VB.NET... and on the couple systems I've checked. I can't find a
single control that gives me a "MouseWheel" event option in it's
properties.

Anyone see this before... what the heck am I doing wrong?

Aug 28 '06 #2
Dave K wrote:
I seem to be missing something... I want to use a mousewheel event in my
VB.NET app... and there's a lot of example code on the net showing how to use
the mousewheel event... and the .NET docs discuss the mousewheel event...

but there doesn't seem to BE a mousewheel event. in VS 2003 or 2005, in C#
or in VB.NET... and on the couple systems I've checked. I can't find a
single control that gives me a "MouseWheel" event option in it's properties.

Anyone see this before... what the heck am I doing wrong?
To save memory, most Control events are not 'real' events. When you
subscribe and unsubscribe, you are adding a delegate to a runtime list
of event handlers; when the event fires, the control has to find the
delegate in a list. Accordingly, the property grid entries for these
events take a bit of property grid 'magic' and (for some reason) this
magic was not applied to the MouseWheel event.

However, if you edit the InitializeComponent method, you will find
that Intellisense DOES know about the MouseWheel event, and Visual
Studio will do the usual auto-complete stuff for you, up to and
including creating a event handler stub.

--

..NET 2.0 for Delphi Programmers www.midnightbeach.com/.net
Delphi skills make .NET easy to learn In print, in stores.
Aug 28 '06 #3
Hi Dave,

This is a known issue that the MouseWheel event doesn't appear in the
property grid. However, we can still handle this event via code. Please
check the following link for more information.

http://connect.microsoft.com/VisualS...k.aspx?Feedbac
kID=114578

Kevin Yu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Aug 29 '06 #4

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

Similar topics

6
by: deko | last post by:
Is it possible to disable the mouse wheel WITHOUT using a DLL? I've looked at Microsoft Knowledge Base Article 278379 (http://support.microsoft.com/default.aspx?scid=kb;en-us;278379), which...
1
by: Niranjan | last post by:
I have a data entry form. I am trying to avoid users accidentally using the mouse wheel and saving an incomplete record (or saving record that skips the validation routine). In Mousewheel event,...
7
by: Daisy | last post by:
I've got a control with a scrollbar docked to the right-hand side. The scrollbar works fine, I've got an event: bottomControlVScroll.Scroll += new ScrollEventHandler(HandleBottomThingScroll); ...
1
by: Qwert | last post by:
Hello, when a NumericUpDown control has the focus, the mousewheel increases/decreases its value. How does one prevent this from happening? How does one turn off its mousewheel event? Thanks.
1
by: Nicholas Shewmaker | last post by:
(I apologize if this posts twice. My AVG is being fussy.) From what I've read, MouseWheel is a very tricky event. I have replaced my Python tcl84.dll and tk84.dll files with those in the...
4
by: tlemcenvisit | last post by:
Hi, I program a windows form application with VC++.NET, I wish to program an event which occurs when the user uses the mouse wheel in a pictureBox control. Which event should I use? And how can...
7
by: James | last post by:
Hi, I have a Windows Forms application which uses multiple child forms (MDI interface). The height of one of the child forms is larger than the height of the MDI client area, so when this...
0
by: WaterWalk | last post by:
Hello. When I tried to make Tkinter canvas widget respond to MouseWheel event on Windows XP, I failed. The canvas just doesn't receive MouseWheel event. I used bind_all to find out which widget...
1
by: =?Utf-8?B?UmljaA==?= | last post by:
In a database search application (vb2005), the user wants to be able to scroll through records using the mousewheel. The data display form contains textboxes for the main data and a datagridview...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.