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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Kirtan PatelRank #292 · 8.6K reputationPosted Aug 24, 2009, 3:33 AM EDT
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();
}
Niradhip ChakrabortyRank #429 · 5.8K reputationPosted Aug 24, 2009, 1:20 AM EDT
Kirtan PatelRank #292 · 8.6K reputationPosted Aug 24, 2009, 2:52 AM EDT
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();
}
Soumya Surendran84 reputationPosted Aug 24, 2009, 3:20 AM EDT
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.....
Soumya Surendran84 reputationPosted Aug 31, 2009, 1:01 AM EDT