MouseWheel, determining up and down scrolling events?

Check the Delta property of the MouseEventArgs.

Up vote 1 down vote favorite share g+ share fb share tw.

Eg Private Sub PictureBox1_MouseWheel(ByVal sender As Object, ByVal e As System.Windows.Forms. MouseEventArgs) Handles Me. MouseWheel if mousewheel.

Scrollup then UserZoom = UserZoom + 0.05 Me.Refresh() end if End Sub I want to be able to adjust the value of userzoom up or down according to if the mouse is wheeled up or down. Any help would be appreciated guys vb.net events handler mousewheel link|improve this question edited May 20 '11 at 12:23itsho13310 asked Mar 4 '10 at 10:06Craig813.

Check the Delta property of the MouseEventArgs: Sample code: Private Sub Form1_MouseWheel(ByVal sender As Object, ByVal e As System.Windows.Forms. MouseEventArgs) Handles Me. MouseWheel If e.

Delta > 0 Then Trace. WriteLine("Scrolled up! ") Else Trace.

WriteLine("Scrolled down! ") End If End Sub.

Ahh, too late :-) – M.A. Hanin Mar 4 '10 at 10:15 Stumbled accross it! Haha take the credit tho :-) – Craig Mar 4 '10 at 10:18.

Figured it out. E. Delta passes either negative or positive values according to if the mouse is scrolled up or down!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions