hai...Plz help me..........
I am creating my application using MDI form...I want to go to another form when a button clicks and the new form should be displayed in that mdi form..
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kirtan PatelPosted Aug 24, 2009, 7:33 AM
private void Agent_Load(object sender, EventArgs e)
{
//Create Instance of Another Form Say Form 2
Form2 f2 = new Form2();
//Set MDI parent as Form1 ( Here Form1 is Main MDI Form)
f2.MdiParent = Application.OpenForms["Form1"];
//Show the Form
f2.Show();
}
Soumya SurendranPosted Aug 31, 2009, 5:01 AM
Soumya SurendranPosted Aug 24, 2009, 7:20 AM
agent ag = new agent();
ag.MdiParent = this;
menuStrip1.Enabled = false;
ag.Show();
from this form "agent" i want to go to form2 which should be displayed as the child of mdi form.....
Kirtan PatelPosted Aug 24, 2009, 6:52 AM
private void button1_Click(object sender, EventArgs e)
{
//Create Instance of Another Form Say Form 2
Form2 f2 = new Form2();
//Set MDI parent as Current Form
f2.MdiParent = this;
//Show the Form
f2.Show();
}
Niradhip ChakrabortyPosted Aug 24, 2009, 5:20 AM