Click here to Skip to main content
15,889,861 members
Home / Discussions / C#
   

C#

 
AnswerRe: Set 'visible' property to 'false' for all the opened forms Pin
Stefan Troschuetz23-Oct-06 21:42
Stefan Troschuetz23-Oct-06 21:42 
GeneralRe: Set 'visible' property to 'false' for all the opened forms Pin
AngryC25-Oct-06 11:03
AngryC25-Oct-06 11:03 
GeneralRe: Set 'visible' property to 'false' for all the opened forms Pin
Stefan Troschuetz25-Oct-06 16:33
Stefan Troschuetz25-Oct-06 16:33 
AnswerRe: Set 'visible' property to 'false' for all the opened forms Pin
MGoettmann24-Oct-06 4:06
MGoettmann24-Oct-06 4:06 
GeneralRe: Set 'visible' property to 'false' for all the opened forms Pin
AngryC25-Oct-06 11:03
AngryC25-Oct-06 11:03 
AnswerRe: Set 'visible' property to 'false' for all the opened forms Pin
MGoettmann25-Oct-06 12:14
MGoettmann25-Oct-06 12:14 
GeneralRe: Set 'visible' property to 'false' for all the opened forms Pin
AngryC26-Oct-06 11:50
AngryC26-Oct-06 11:50 
GeneralRe: Set 'visible' property to 'false' for all the opened forms Pin
MGoettmann27-Oct-06 5:11
MGoettmann27-Oct-06 5:11 
ouh... this becomes really complicated. To solve this particular issue, I would suggest to add an eventhandler in your form.

this.VisibleChanged += new EventHandler(Form1_VisibleChanged);

Here you can show/hide the dialog according to the actual form's Visible state.

My solution is a sledgehammer method to get all running form objects - without having any idea of your application logic. Maybe you will run run into similar issues with other forms/controls.

At this point you might consider implementing Stefan's solution and storing your forms references in a central list?

btw: if *all* app's windows (incl. dialogs) were hidden... how to bring them back?

regards
Martin
GeneralRichTextBox Pin
1010210623-Oct-06 12:29
1010210623-Oct-06 12:29 
GeneralRe: RichTextBox Pin
1010210623-Oct-06 12:43
1010210623-Oct-06 12:43 
QuestionC # 3 in net framework 3 package? Pin
SJ_Phoenix23-Oct-06 7:53
SJ_Phoenix23-Oct-06 7:53 
AnswerRe: C # 3 in net framework 3 package? Pin
S. Senthil Kumar23-Oct-06 7:58
S. Senthil Kumar23-Oct-06 7:58 
GeneralRe: C # 3 in net framework 3 package? Pin
SJ_Phoenix23-Oct-06 8:07
SJ_Phoenix23-Oct-06 8:07 
QuestionHELP - Datagrid Pin
Wargamon23-Oct-06 6:56
Wargamon23-Oct-06 6:56 
QuestionSerialization problem Pin
-Yoyosh-23-Oct-06 5:11
-Yoyosh-23-Oct-06 5:11 
AnswerRe: Serialization problem Pin
led mike23-Oct-06 5:21
led mike23-Oct-06 5:21 
GeneralRe: Serialization problem Pin
-Yoyosh-23-Oct-06 11:58
-Yoyosh-23-Oct-06 11:58 
GeneralRe: Serialization problem Pin
led mike24-Oct-06 5:01
led mike24-Oct-06 5:01 
QuestionHttpWebRequest + CookieContainer Pin
FlyOnIT23-Oct-06 5:09
FlyOnIT23-Oct-06 5:09 
QuestionPort 80 Pin
-Yoyosh-23-Oct-06 5:08
-Yoyosh-23-Oct-06 5:08 
QuestionObtaining Page Rank Pin
gvanto23-Oct-06 5:00
gvanto23-Oct-06 5:00 
QuestionNot have any cell selected in a datagrid Pin
Dan Neely23-Oct-06 4:45
Dan Neely23-Oct-06 4:45 
QuestionOverride inherited delegates??? Pin
lsugirljte23-Oct-06 4:36
lsugirljte23-Oct-06 4:36 
AnswerRe: Override inherited delegates??? Pin
led mike23-Oct-06 5:17
led mike23-Oct-06 5:17 
GeneralRe: Override inherited delegates??? Pin
lsugirljte23-Oct-06 5:34
lsugirljte23-Oct-06 5:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.