yeah just like in the title I'm currently doing a project and can you give me an advice on how can I show the forms of my project? to be exact, I'm actually thinking to use the MDI method (you know the MDI parent and child) but I think that there are other good ways to do it other than that but I don't know how to do it. can you give me some tips or links where I can study it to apply to my project?
Very simple little snippet that should give you the very basic of how to create an mdi form and add childs to it. Can't really give you more than that without more context on what you want to do honestly.
public Form1()
{
InitializeComponent();
this.IsMdiContainer = true; //set this on your "main" form that you want to make as the mdiContainer
}
private void Form1_Load(object sender, EventArgs e)
{
Form frmMdiChild = new Form(); //instantiate a new form.
frmMdiChild.MdiParent = this; //indicate it's a child of our mdiContainer
frmMdiChild.Show(); //display it.
Form frmMdiChild2 = new Form(); //same business for a second form, and so on.
frmMdiChild2.MdiParent = this;
frmMdiChild2.Show();
}
EDIT: Copy pasting code freaking sucks on here! :P
You know you couldd have just used the
[code] [/code]
stuff right?