PDA

Click to See Complete Forum and Search --> : How do I get a form to wait until another form has done its "thing"?


lumin
Jan 24th, 2000, 03:47 AM
Hi.

ok ok ok I know this question probably has been anvered before but belive me I sreached this iste for it (I might have overlooked it)

ok lets continue to the question.

How do I get a form in my program to wait until the other form has done its "thing"
or wait till the form has unloaded?


Thanks in advance.


-Lumin

netSurfer
Jan 24th, 2000, 03:49 AM
frmNewForm.show 1

that will open up the new form and suspend all other actions until you unload it. Is this what you mean?

Aaron Young
Jan 24th, 2000, 03:50 AM
Show the Form that's going to "Do its Thing", Modaly, that way Processing within the Calling Form won't continue until the Modal Form is Unloaded or Hidden, ie.

Private Sub Command1_Click()
'Do Some Stuff
'Let the Other Form "Do its Thing"
Form2.Show vbModal
'Do the Rest of the Stuff Here After the
'Other Form is Hidden/Unloaded
End Sub


------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
ajyoung@pressenter.com

lumin
Jan 24th, 2000, 03:56 AM
woha that was a fast replay.

Anyway thanks it was just what I was looking for :)

-Lumin