Mousewheel event...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dave K

    #1

    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?
  • Kevin Spencer

    #2
    Re: Mousewheel event...

    How about Control.MouseWh eel?

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    Chicken Salad Surgery

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


    "Dave K" <DaveK67@commun ity.nospamwrote in message
    news:AD92D03B-0519-430C-90FD-91855D878AD4@mi crosoft.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?

    Comment

    • Jon Shemitz

      #3
      Re: Mousewheel event...

      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 InitializeCompo nent 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.

      Comment

      • Kevin Yu [MSFT]

        #4
        RE: Mousewheel event...

        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.


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

        Comment

        Working...