Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 26-04-2010
Member
 
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
Reply With Quote
  #2  
Old 27-04-2010
Member
 
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();
   }
Reply With Quote
  #3  
Old 27-04-2010
Member
 
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
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "VB 2008 - MDI child forms - How do I set a form as a MDI child form"
Thread Thread Starter Forum Replies Last Post
Google Chrome is opening in basic HTML form instead of the Standard form Beatrix Technology & Internet 5 25-05-2011 10:21 PM
Adding 2008 DC to a firewalled Child Domain DrinkIT Windows Software 3 15-04-2011 03:40 AM
Remove child domain after child domain DC has failed DANIEL 602 Active Directory 1 26-03-2010 03:13 AM
How to access form objects of multiple forms in JavaScript? N I C K Software Development 4 07-02-2010 05:42 AM
Problem reloading MDI child form in main form. AFFAN Software Development 3 30-01-2009 09:05 PM


All times are GMT +5.5. The time now is 04:28 PM.