|
-
Feb 27th, 2007, 10:17 AM
#1
Thread Starter
Lively Member
How to Make vbModal work in MDI
Hi everyone,
I have a project that require a MDI program "HRMain", which run a MDI Child "frmMain" to input data, within this "frmMain", another MDI Child "frmNewClient" will be display so that user will make a major decision. Then difference process will be perform in "frmMain" based on this major decision.
But now, vbModal is not working because "frmNewClient" is a MDI Child so that the program is not functioning accordingly.
I wonder anyone can help me to resolve this problem, please.
-
Feb 27th, 2007, 10:53 AM
#2
Re: How to Make vbModal work in MDI
Well, the obvious question. Why is frmNewClient an MDIChild? Is it used for other purposes as well.
-
Feb 27th, 2007, 11:02 AM
#3
Thread Starter
Lively Member
Re: How to Make vbModal work in MDI
bruce,
It is because the end user want to "minimize" the program, and it is not running MDI at the beginning.
-
Feb 27th, 2007, 04:30 PM
#4
Re: How to Make vbModal work in MDI
An MDI child form can not be shown modally. Also if a modal form is shown you're not suppose to be able to access the owner form until the modal form is closed. So saying that you both want a modal form and still be able to directly access the owner form so you can minimize it is a contradiction in terms.
I would suggest that you make sure this form is not an MDI-child so you can show it modal, while still having the minimize button on this particular Form. In the Resize event simply check if the WindowState has been set to vbMinimized and in that case also minimize the owner Form. That way the whole application can still be minimized while the modal form is shown.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|