Set current form to hide [modified]
-
Hi, I open and hide form using form.showdialog() and form.hide(); How do i detect if the current form is hidden, and if it's hidden don't do this.
modified on Sunday, February 7, 2010 8:41 AM
-
Hi, I open and hide form using form.showdialog() and form.hide(); How do i detect if the current form is hidden, and if it's hidden don't do this.
modified on Sunday, February 7, 2010 8:41 AM
To hide the form use the Form.Hide method. To show it again use Form.Show Simple, no?
If Barbie is so popular, why do you have to buy her friends? Eagles may soar, but weasels don't get sucked into jet engines. If at first you don't succeed, destroy all evidence that you tried.
-
To hide the form use the Form.Hide method. To show it again use Form.Show Simple, no?
If Barbie is so popular, why do you have to buy her friends? Eagles may soar, but weasels don't get sucked into jet engines. If at first you don't succeed, destroy all evidence that you tried.
hey OriginalGriff, Tks for the reply. i have edited my question to make it more clear. I open and hide my form using form.show and form.hide how do i check if the current form is hidden so as not to perform certain task
-
hey OriginalGriff, Tks for the reply. i have edited my question to make it more clear. I open and hide my form using form.show and form.hide how do i check if the current form is hidden so as not to perform certain task
-
hey OriginalGriff, Tks for the reply. i have edited my question to make it more clear. I open and hide my form using form.show and form.hide how do i check if the current form is hidden so as not to perform certain task
you can put global bool var. and when you hide the form put it True else false (it is just an idea)
-
you can put global bool var. and when you hide the form put it True else false (it is just an idea)
Tks. alternative idea for visible method.
-
The property
form.Visible
determines whether a form is visible (shown).Greetings - Jacek
Great. It works. tks Jacek
-
Hi, I open and hide form using form.showdialog() and form.hide(); How do i detect if the current form is hidden, and if it's hidden don't do this.
modified on Sunday, February 7, 2010 8:41 AM
this how i hide a form and open a new one
Form1 form = new Form1(); // new Form
this.Visible = false; // The Current Showing Form Hides
if(form.ShowDialog() == DialogResult.OK) // Makes Form Show
{}
this.Visible = true; / on close of the form you opened the one you started from shows:)