private void button1_Click(object sender, EventArgs e)
bool IsOpen = false;
foreach (Form f in Application.OpenForms)
if (f.Text == "Form2")
IsOpen = true;
if (IsOpen == false)
Form2 f2 = new Form2();
f2.MdiParent = this;
He completed his Bachelor of Computer Application from Gujarat University 2009 .He is doing Master of Computer Application from Gujarat Technological University right now ..
His area of Interests are Web Hacking , C# .n... Read more
C# Corner. All contents are copyright of their authors.