Check for the status of Windows Form
-
In my application, when I showing a new form I do, Form2 frm2=new Form2(); This.hide(); frm2.TopMost = true; frm2.Show(); I do like that..again when I come to first form. I do the same being in second form.(imagine I am in Form2 now.) this.Close(); frm1.Show(); // this is my first form. Problem is some times I cant see my first form.it is still hiden. So it is happens sometimes. Are there any way to know (some status) to know my form is already hiden or shown. What is the best practice of this kind of situation?
-
In my application, when I showing a new form I do, Form2 frm2=new Form2(); This.hide(); frm2.TopMost = true; frm2.Show(); I do like that..again when I come to first form. I do the same being in second form.(imagine I am in Form2 now.) this.Close(); frm1.Show(); // this is my first form. Problem is some times I cant see my first form.it is still hiden. So it is happens sometimes. Are there any way to know (some status) to know my form is already hiden or shown. What is the best practice of this kind of situation?
Hi, Show/Hide methods and Visible property always correspond. :)
Luc Pattyn [Forum Guidelines] [My Articles]
Voting for dummies? No thanks. X|