Question My application does not detect scrolling mouse

ivor

Member
Joined
Mar 22, 2011
Messages
7
Location
Croatia
Programming Experience
1-3
Hello guys,

can anybody help with my problem. I made an application where i used mouse scrool event. On my PC everyting work excellent, but when I try it on different machine scrolling is not detected!? How is that possible?!
i am using e.delta < 0 and e.delta > 0

Please help
 

ivor

Member
Joined
Mar 22, 2011
Messages
7
Location
Croatia
Programming Experience
1-3
Please provide a FULL and CLEAR description of EXACTLY what you're doing and EXACTLY what happens. In exactly what context are you using those expressions?

Thanks for trying to help jmcilhinney. No, problem.
Actually my code is very simple. I have an image that is screenshoot of currently screen. Then, with rolling mouse, i zoom it + or -. Nothing more.


'zooming down
If e.Delta < 0 Then


If img_zumiranje.Height > System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height And img_zumiranje.Width > System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width Then
For i = 0 To 12
img_zumiranje.Height = img_zumiranje.Height - System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height * 0.1
img_zumiranje.Width = img_zumiranje.Width - System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width * 0.1
img_zumiranje_MouseMove(Nothing, Nothing)
Next
End If

End If

' zooming up
If e.Delta > 0 Then

If img_zumiranje.Height < System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height * 5 Or img_zumiranje.Width < System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width * 4 Then

For i = 0 To 12
img_zumiranje.Height = img_zumiranje.Height + System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height * 0.1
img_zumiranje.Width = img_zumiranje.Width + System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width * 0.1
'img_zumiranje.Refresh()
img_zumiranje_MouseMove(Nothing, Nothing)
Next
End If
End If

But, i must also mention something strange that i remark tonight. Some buttons on my form that should react on ONE mouse click, react only on double mouse click. I really do not understand.
p.s. this is my first post ever. So please forgive me if i did not made it in suitable form (i mean code)

Thanks
 

ivor

Member
Joined
Mar 22, 2011
Messages
7
Location
Croatia
Programming Experience
1-3
I discovered problem. There was also one little form in my application that was set to top most. That was problem. Thanks jmcilhinney for trying to help.
 
Top Bottom