In my application the main form (form1) has a usercontrol with a button. When the user clicks the button I would like a MdiChild form (of form1) to appear.
Normally when opening a MdiChild from a button on a parent form or another child form I use:
Expand|Select|Wrap|Line Numbers
- private void Button1_Click(object sender, EventArgs e)
- {
- Form2 newMdiChild = new Form2();
- newMdiChild.Mdiparent = this.Mdiparent;
- newMdiChild.Show();
I am still new to programming but any help would be greatly appreciated.