Click to See Complete Forum and Search --> : form_MouseMove event


Lorddard
November 7th, 1999, 08:22 AM
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

czimmerman
November 8th, 1999, 03:52 PM
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