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

Opening a Modeless Form from a Modal form

Status
Not open for further replies.

jstiegelmeyer

Programmer
Dec 31, 2002
27
US
I have an MDI child form called frmPlsWait. I show it in my project whenever an HourGlass isn't sufficient and the user needs an explanation of what he is waiting for.

There's only one problem, I can't use it if the calling code is in a Modal form.

If I load frmPlsWait as a Modal form, the calling code will pause. For instance, in the example below, if frmPlsWait is opened modally, we will never get to the move statement because the focus will be sitting on frmPlsWait. However, if the code below is in a modal form, then we can not load frmPlsWait in the modeless format.

frmPlsWait.ShowPlsWait "Renaming File..."
Move MyOldFile, MyNewFile
frmPlsWait.HidePlsWait

Any ideas would be greatly appreciated!

Thanks,
Jamie
 
You cannot use a mdi form or mdi child form as modal, but you can show them from within the code of a modal form.

With 1 mdiform and 1 child and 1 modal form ....

From mdiform1_load
form2.show vbmodal

From form2_load
form3.show (This is your mdichild)


 
vbrocks-

Thanks for your response. What I've learned is that it is possible to show an mdi child from a modal form, but only in the load statement. Do you agree?

Thanks,
Jamie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top