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

x
?
Solved

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

Posted on 2011-05-07
2
Medium Priority
?
375 Views
Last Modified: 2012-05-11
Hi,
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.

Thanks
0
Comment
Question by:milani_lucie
2 Comments
 

Author Comment

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

Thanks
0
 
LVL 83

Accepted Solution

by:
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
f1.Show()

Use this

Dim f1 As New ChildForm
f1.ShowInTaskbar = False
f1.ShowDialog()
0

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