Guest User

Untitled

a guest
Oct 23rd, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. public partial class Form1 : Form
  2. {
  3. public Form1()
  4. {
  5. InitializeComponent();
  6. //Aquí indico que mi formulario va ser padre de otras ventanas MDI
  7. IsMdiContainer = true;
  8. }
  9.  
  10. private void button1_Click(object sender, EventArgs e)
  11. {
  12. //Este viene siendo practicamente el mismo código tuyo solo que mi formulario es de la clase Form2, por lo demás es igual
  13. Form2 form2 = new Form2();
  14. form2.MdiParent = this;
  15. form2.Show();
  16. }
  17. }
Add Comment
Please, Sign In to add comment