Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multi-forms problem (not MDI) upon activation

Status
Not open for further replies.

influent

Programmer
Jan 11, 2001
131
US
I have an application with a Main form and six forms that can be accessed through command buttons on the main form (not MDIs). If I click on another program in the taskbar while one of the six forms is open, then go back to the form, it runs the Form_Activate procedure again. Is there a way to stop that?, it causes an error every time.
 
How about putting a property (boolean flag) OK_To_Run on the form that gets set at form_load and form_close. At the beginning of your activation procedure, check the flag to see if it is true or false
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top