CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 1999
    Posts
    5

    form_MouseMove event

    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



  2. #2

    Re: form_MouseMove event

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured