Solved

MDI form questions

Posted on 2006-11-06
5
194 Views
Last Modified: 2010-04-24
150 points are given to the answer if each of these related questions:

1) I have an About form, I want to always appear in the center of the MDI parent form, and as long as it is visible, I want the other forms to not be clickable (Just like the way you can't focus to the main window of Word when you have a dialog box open.) Is this possible?
2) I have a menu item in the parent form, which calls Show() method of one of the child forms. I want to add a functionality, so that, when that menu item is clicked and the child form is minimized, it restores the child window.
0
Comment
Question by:huji
  • 2
  • 2
5 Comments
 
LVL 14

Author Comment

by:huji
ID: 17882292
I found the answer to the second part. all 300 points will go to the first one.
0
 
LVL 10

Accepted Solution

by:
Kinger247 earned 300 total points
ID: 17882478
1)

        Dim About As New frmAbout
        About.ShowDialog()
0
 
LVL 62

Expert Comment

by:Fernando Soto
ID: 17882689
The complete answer for question 1 is

        Dim About As New frmAbout
        About StartPosition = FormStartPosition.CenterParent
        About .ShowDialog()

Fernando
0
 
LVL 62

Expert Comment

by:Fernando Soto
ID: 17882708
Sorry forget a dot and had a extra space in my last post.

        Dim About As New frmAbout
        About.StartPosition = FormStartPosition.CenterParent
        About.ShowDialog()

Fernando
0
 
LVL 14

Author Comment

by:huji
ID: 17882742
Thanks to both, and I had to give the points to the faster answer. Please follow me here:

http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VB_DOT_NET/Q_22050596.html
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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 …
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now