Anyone know how to do this?
Printable View
Anyone know how to do this?
Try
opening the form as vbmodal from the first form.
Code:form2.Show vbmodal
hey,
When you open the form you want to pause, open it like so:
VbModal tells VB that the Form2 must be closed before Form1 gets focus back. Me is a reference to Form1Code:Load Form2
Form2.show vbmodal, me
hope that helps
Nick
If the forms are "related", that is one loads/shows the other you can do this:
FormA shows the next form:
formB.show vbmodal, me
Form B will not appear and form A will be "paused" until Form B is unloaded.
Look in on-line help for better descriptions of vbModal...