Results 1 to 3 of 3

Thread: VB 2008 - MDI child forms - How do I set a form as a MDI child form

  1. #1
    Join Date
    Apr 2010
    Posts
    3

    VB 2008 - MDI child forms - How do I set a form as a MDI child form

    Greeting Everyone,

    I have several forms in my project and I have set the IsMdiContainer property to True on my main form.

    This project also is not using a menu system. Instead I'm using a 3rd party ribbon control with buttons that call the other forms in the project.

    Can you tell me how to set the other existing forms in the project as MDI child forms?

    Thanks.

    Truly,
    Emad

  2. #2
    Join Date
    Apr 2008
    Posts
    240

    Re: VB 2008 - MDI child forms - How do I set a form as a MDI child form

    Hello,
    See if the following code can help you
    Code:
    protected void MDIChildNew_Click(object sen, System.EventArgs e){
       Form3 mdicld = new Form3();
       // Set the Parent Form of the Child window.
       mdicld.MdiParent = this;
       // Display the new form.
       mdicld.Show();
    }
    
    
    private:
       System::Void menuItem2_Click(System::Object *  sen,
          System::EventArgs *  e)
       {
          Form3 *mdicld = new Form3();
          // Set the Parent Form of the Child window.
          mdicld->MdiParent = this;
          // Display the new form.
          mdicld->Show();
       }

  3. #3
    Join Date
    Apr 2010
    Posts
    3

    Re: VB 2008 - MDI child forms - How do I set a form as a MDI child form

    Greetings Solaris,

    Thanks so much for the help.

    I translated the C to VB and found out how you did it.

    Truly,
    Emad

Similar Threads

  1. Replies: 5
    Last Post: 25-05-2011, 10:21 PM
  2. Adding 2008 DC to a firewalled Child Domain
    By DrinkIT in forum Windows Software
    Replies: 3
    Last Post: 15-04-2011, 03:40 AM
  3. Remove child domain after child domain DC has failed
    By DANIEL 602 in forum Active Directory
    Replies: 1
    Last Post: 26-03-2010, 03:13 AM
  4. How to access form objects of multiple forms in JavaScript?
    By N I C K in forum Software Development
    Replies: 4
    Last Post: 07-02-2010, 05:42 AM
  5. Problem reloading MDI child form in main form.
    By AFFAN in forum Software Development
    Replies: 3
    Last Post: 30-01-2009, 09:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,449,175.58296 seconds with 16 queries