i am create one mdi application in c# dot net.
mdi form contain many child forms when open one child form and again open this child form then open 2 times this child form please help me to open one child form at a time in this application
ShailaMohite
-3
Newbie Poster
Recommended Answers
Jump to PostTry this:
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace daniweb.mdi { public partial class frmMain : Form { public frmMain() { InitializeComponent(); } private Form OpenForm(Type t) { if (!t.IsSubclassOf(typeof(Form)) && !(t == typeof(Form))) throw new ArgumentException("Type …
Jump to Postusing System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace daniweb.mdi { public partial class frmMain2 : Form { public frmMain2() { InitializeComponent(); } private bool IsFormOpen(Type t) { return IsFormOpen(t, false); } private bool IsFormOpen(Type t, bool focus) { …
All 6 Replies
sknake
1,622
Senior Poster
Featured Poster
ShailaMohite
-3
Newbie Poster
sknake
1,622
Senior Poster
Featured Poster
ShailaMohite
-3
Newbie Poster
vivekagrawal
-3
Light Poster
vivekagrawal
-3
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.