E Etienne-Louis Nicolet Mar 16, 2009 #1 Is it possible to use a windows form as a control in another form? If so, how? Many thanks and kind regards, Etienne
Is it possible to use a windows form as a control in another form? If so, how? Many thanks and kind regards, Etienne
H hack2root Mar 17, 2009 #2 Is it possible to use a windows form as a control in another form? If so, how? Many thanks and kind regards, Etienne Click to expand... Yes, you can create MDI appcation to host child forms. public partial class Form1 : Form { public Form1() { InitializeComponent(); this.IsMdiContainer = true; } private void newToolStripMenuItem_Click(object sender, EventArgs e) { Form2 mdiChildForm = new Form2(); mdiChildForm.MdiParent = this; mdiChildForm.Show(); } }
Is it possible to use a windows form as a control in another form? If so, how? Many thanks and kind regards, Etienne Click to expand... Yes, you can create MDI appcation to host child forms. public partial class Form1 : Form { public Form1() { InitializeComponent(); this.IsMdiContainer = true; } private void newToolStripMenuItem_Click(object sender, EventArgs e) { Form2 mdiChildForm = new Form2(); mdiChildForm.MdiParent = this; mdiChildForm.Show(); } }