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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to disable the form while calling another form from the menu

Status
Not open for further replies.

fredgmain

IS-IT--Management
Oct 30, 2009
22
MY
Hi all,

I have a "2 - Top level" form (form1) with a menu. I want to disable the main form (form1) when I call another form (form2) from the menu and enable the (form1) again after the user closed the second form (form2).

Thanks in advance.
Fred

 
If your 2nd form is set Modal then it will prevent the user from leaving it to go back to the 1st form until use of the 2nd form is done.

Another thing you can consider using is ThisForm.Hide/ThisForm.Show
If, as you leave the 1st form, you Hide it and, upon return, you Show it, you encourage the user to not even try to utilize the 1st form.

Good Luck,
JRB-Bldr


 
If your forms both are top level forms, then you can't make them modal, even setting them modal does not make them act modal. You should then consider hiding other forms.

And you can inactivate menus with the SKIP clause. Create a variable glMenuInactive and set it .t. whenever you want the menu inactive, create the menus with SKIP FOR glMenuInactive

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top