My application does not detect scrolling mouse
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 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.
Originally Posted by jmcilhinney
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.
If e.Delta < 0 Then
If img_zumiranje.Height > System.Windows.Forms.Screen.PrimaryScreen.Bounds.H eight And img_zumiranje.Width > System.Windows.Forms.Screen.PrimaryScreen.Bounds.W idth Then
For i = 0 To 12
img_zumiranje.Height = img_zumiranje.Height - System.Windows.Forms.Screen.PrimaryScreen.Bounds.H eight * 0.1
img_zumiranje.Width = img_zumiranje.Width - System.Windows.Forms.Screen.PrimaryScreen.Bounds.W idth * 0.1
' zooming up
If e.Delta > 0 Then
If img_zumiranje.Height < System.Windows.Forms.Screen.PrimaryScreen.Bounds.H eight * 5 Or img_zumiranje.Width < System.Windows.Forms.Screen.PrimaryScreen.Bounds.W idth * 4 Then
For i = 0 To 12
img_zumiranje.Height = img_zumiranje.Height + System.Windows.Forms.Screen.PrimaryScreen.Bounds.H eight * 0.1
img_zumiranje.Width = img_zumiranje.Width + System.Windows.Forms.Screen.PrimaryScreen.Bounds.W idth * 0.1
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)
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.
Tags for this Thread