form_MouseMove alway got execute every time I start the application(or debug mode) even my mouse is not moving
I set my from to windowsstate = 2 ( standard application)
How can I counter the situation?
Please help
Printable View
form_MouseMove alway got execute every time I start the application(or debug mode) even my mouse is not moving
I set my from to windowsstate = 2 ( standard application)
How can I counter the situation?
Please help
In your declarations, declare a global flag:
Private pbLoading as Boolean.
At the beginning of your form_load event, set pbLoading to true. At end of form_activate, set it to false.
In the Mouse_Move Event code, do the following:
If not pbLoading then
'Do whatever
End if
Charlie Zimmerman
http://www.freevbcode.com