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