3
Answers

Two Forms in C#

Roshan

Roshan

17y
7k
1
The coding relates to Visual C#.NET 2005 I have two forms (Form1 and Form2). Form2 is called by Form1 as Show() In Form1 Button-1 ----> Form2 frmform2 = new Form2(this); frmform2.Show(); Now I can switch back to form1 also without closing the Form2. I can click on the form1 also. If I click the Button-1 again in the Form1, another Form2 appears. So it makes two forms. Can I check whether the Form2 is already invoked and prevent it from appearing again? I want to activate the already opened Form2 but not a new Form2?
Answers (3)