By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,681 Members | 1,854 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,681 IT Pros & Developers. It's quick & easy.

Mousewheel event...

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.