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

Modal Forms - (again!) 1

Status
Not open for further replies.

Goofus828

Programmer
Nov 9, 2005
127
US
Hi all,
according to thread184-863297 a top-level from cannot be modal so how does a secondary form become modal?

Here is my question. I have a main form, size is 250x440.
A button calls a second form which is 330x600, obviously it is a "(2) as top-level form" because it cannot be "(1)in Top-Level form", it won't fit.

The second form displays ok but the code in the main form continues after the call of the second.
Code:
** main form - now call second form
DO FORM forms\frmedit

I don't want the code after the DO FORM statement to execute. I want the second form to be modal.
I'm using VFP9.0.

Any suggestions?

Thanks
 
Try making the second form In top-level window and Desktop=.T.

That said, why would you call a larger form from a smaller form? Why isn't the main window for your app (I assume that's what the smaller form is) big enough to hold all the others?

Tamar
 
Tamar, that suggestion worked, thank you. Shame on me for not really looking at the desktop property. And to answer you question on
Why isn't the main window for your app (I assume that's what the smaller form is) big enough to hold all the others?
The main form is like a main menu, small in size but the forms from those options are larger. That was the design spec I was given.

Mike, that did not work.

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top