[Last Call] Learn how to a build a cloud-first strategyRegister Now


How can I make modaldialog when we are using MDI parent child relationship ?

Posted on 2011-05-07
Medium Priority
Last Modified: 2012-05-11
I have MDI form with Menu. When you have selected a menu item, you will be shown a child window. My problem is, even though I am showing one child window, I can click on menu and select another child window to show. I want to avoid this by using modal dialog or something. But I cannot make it as modaldialog as I am using MDI here. Can you please provide me a solution ? I made the Visigoth of the controlbox to false but invain.

Question by:milani_lucie

Author Comment

ID: 35714379
Sorry ... Please read it as visible property of the control.

LVL 83

Accepted Solution

CodeCruiser earned 2000 total points
ID: 35715932
An MDI child form can not be shown modally. Try this

Instead of

Dim f1 As New ChildForm
f1.mdiparent = Me

Use this

Dim f1 As New ChildForm
f1.ShowInTaskbar = False

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question