Thanks for the quick response Derek. I've checked everything you mentioned, and it still happens. I forgot to mention that the 2nd form *does* appear, but the code immediately after it's DO FORM is launched right after... so no wait state occurs.
Any other ideas? At 05:03 PM 2/16/2007, you wrote: > > Am I missing something obvious? > > > > I have a non modal TLF (Top Level Form), ie, ShowWindow Property = 2 > > and I am calling a 2nd MODAL TLF Form from it via a button click. I > > put a messagebox() right after the call to DO FORM to see when VFP > > executes that line. Since the form is modal, it shouldn't be executed > > until I close the form myself. > > > > It works as expected from VFP either by running the 1st TLF form > > directly or creating an EXE with a stub prg that launches the 1st TLF > > form. In the stub prg, I simply do DO FORM and then READ EVENTS. I > > only CLEAR EVENTS in the destroy of the 1st form. > > > > If I launch the .EXE from explorer, the 2nd Modal Form does not > > appear, and the code immediately after the DO FORM executes, as if > > the wait state get's messed up.. > > > > Anyone know what's going on or what am I missing? > >I'm not sure what you're missing, but I do this all the time, so I >know it's not a VFP issue. > >Make sure(double check) that both forms are marked modal, make sure >there's a READ EVENTS right after the do form on the first form(and >only there), and make sure the clear events happens only when you >close the first form. Also, make sure that the 2nd form is 'open in >top level form' and not 'open in screen'... > > >-- >Derek > > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

