Mousewheel event...

G

Guest

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

Kevin Spencer

How about Control.MouseWheel?

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

It takes a tough man to make a tender chicken salad.
 
J

Jon Shemitz

Dave said:
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.
 
K

Kevin Yu [MSFT]

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/VisualStudio/feedback/ViewFeedback.aspx?Feedbac
kID=114578

Kevin Yu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx.
==================================================

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top