|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
register Mouse wheel handler in main VB .net 2005 formhow do I register my Mouse wheel handler in my main VB .net 2005 form? My function Private Sub Me_MouseWheel(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseWheel never gets called. What do I need to do to tell VB that this function should handle the mouse wheel event? In the designer, on the events list I do not have a MouseWheel event, only MouseUp, MouseDown, MouseEnter, MouseLeave, MouseHover, MouseMove. If I could get MouseWheel into this my problems are most likely resolved. Thanks for any help Ingmar I just read to a number of related posts.
The best I could find was to add a function like: Protected Overrides Sub OnMouseWheel(ByVal e As System.Windows.Forms.MouseEventArgs) Me_MouseWheel(Me, e) End Sub However, this also seems to never get called :-( "ingmar" <ingmar.bit***@gmail.com> schrieb: Replace 'Me.MouseWheel' with 'MyBase.MouseWheel' or alternatively override > how do I register my Mouse wheel handler in my main VB .net 2005 form? > My function > > Private Sub Me_MouseWheel(ByVal sender As Object, ByVal e As > System.Windows.Forms.MouseEventArgs) Handles Me.MouseWheel > > never gets called. the form's 'OnMouseWheel' method. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
strange behavior , has someone an explanation for this ??
how to not use VB.net Format Strings in DataGrid Column Style Windows Forms and Console Application [VB2005EE] accessing control-specific functions via form's ActiveControl Data type conversion question Developing ASP.NET 2.0 Applications Visual C to Visual Basic Converstion Help... textbox numeric with 2 decimals .Net Mail only goes to one |
|||||||||||||||||||||||