Click here to Skip to main content
15,906,645 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: Ending C# app gracefully on shutdown Pin
Luc Pattyn10-Jan-08 8:22
sitebuilderLuc Pattyn10-Jan-08 8:22 
GeneralRe: Ending C# app gracefully on shutdown Pin
Clutchplate11-Jan-08 5:49
Clutchplate11-Jan-08 5:49 
GeneralRe: Ending C# app gracefully on shutdown Pin
Clutchplate11-Jan-08 6:58
Clutchplate11-Jan-08 6:58 
GeneralRe: Ending C# app gracefully on shutdown Pin
Luc Pattyn11-Jan-08 7:33
sitebuilderLuc Pattyn11-Jan-08 7:33 
Generalweb services in windows application Pin
caradri10-Jan-08 0:45
caradri10-Jan-08 0:45 
GeneralRe: web services in windows application Pin
Kschuler10-Jan-08 9:56
Kschuler10-Jan-08 9:56 
Generalplug to check spilling mistake the commnt in Source Code project Pin
dark-Slayer828-Jan-08 17:16
dark-Slayer828-Jan-08 17:16 
QuestionHiding & restoring all open forms -- problem Pin
Jabes8-Jan-08 4:27
Jabes8-Jan-08 4:27 
I need to hide all open active forms in my application (and be able to bring them back later to their exact state). This is a security function for which there is an external requirement, and I can do nothing to manage.

My first test was to use the Application.OpenForms to iterate through all open forms and then hide them (by setting Visible = false). This gives a problem if I have a modal dialog open at the time - it gets closed (with DialogResult getting set to Cancel). I just want to hide it temporarily, and bring it back later, so this doesn't help.

My second idea was, rather than close the forms, to resize them to 0,0, move them off screen, and remove them from the taskbar. If I remove them from the taskbar, then they disappear from the OpenForms collection, and do not get re-added if I add turn the taskbar back on. This appears to be a "known issue" with using OpenForms.


So, has anyone got any ideas how to achieve this?

If I could iterate through all open forms for my process without using Application.OpenForms (any win32 way?) perhaps I could manipulate the showintaskbar without worrying? Or perhaps there is an alternative way to hide the window and restore it that someone can think of that doesn't result in a model dialog form getting closed rather than just becoming invisable Smile | :)

Best wishes
James
GeneralRe: Hiding & restoring all open forms -- problem Pin
Luc Pattyn8-Jan-08 6:00
sitebuilderLuc Pattyn8-Jan-08 6:00 
GeneralRe: Hiding & restoring all open forms -- problem Pin
Jabes8-Jan-08 6:12
Jabes8-Jan-08 6:12 
GeneralRe: Hiding & restoring all open forms -- problem Pin
Luc Pattyn8-Jan-08 6:37
sitebuilderLuc Pattyn8-Jan-08 6:37 
GeneralRe: Hiding & restoring all open forms -- problem Pin
Jabes9-Jan-08 2:23
Jabes9-Jan-08 2:23 
GeneralRe: Hiding & restoring all open forms -- problem Pin
Luc Pattyn10-Jan-08 12:10
sitebuilderLuc Pattyn10-Jan-08 12:10 
GeneralRe: Hiding & restoring all open forms -- problem Pin
Jabes10-Jan-08 22:21
Jabes10-Jan-08 22:21 
GeneralRe: Hiding & restoring all open forms -- problem Pin
Luc Pattyn10-Jan-08 23:46
sitebuilderLuc Pattyn10-Jan-08 23:46 
QuestionHow to restore a form Pin
niradhip8-Jan-08 3:58
niradhip8-Jan-08 3:58 
AnswerRe: How to restore a form Pin
John_Adams10-Jan-08 11:36
John_Adams10-Jan-08 11:36 
QuestionDatagrid Pin
Member 47502137-Jan-08 10:58
Member 47502137-Jan-08 10:58 
GeneralRe: Datagrid Pin
DotNetXenon9-Jan-08 10:50
DotNetXenon9-Jan-08 10:50 
QuestionMDI app with Database access Pin
Gymnast7-Jan-08 8:26
Gymnast7-Jan-08 8:26 
GeneralRe: MDI app with Database access Pin
Kschuler10-Jan-08 10:05
Kschuler10-Jan-08 10:05 
QuestionHow maintain advertisement on kiosk machine [modified] Pin
Prashant kr Yadav (MEC)7-Jan-08 3:36
Prashant kr Yadav (MEC)7-Jan-08 3:36 
AnswerRe: How maintain advertisement on kiosk machine Pin
Christian Graus8-Jan-08 9:18
protectorChristian Graus8-Jan-08 9:18 
GeneralRe: How maintain advertisement on kiosk machine Pin
Prashant kr Yadav (MEC)9-Jan-08 3:13
Prashant kr Yadav (MEC)9-Jan-08 3:13 
GeneralRe: How maintain advertisement on kiosk machine Pin
Pete O'Hanlon10-Jan-08 10:02
mvePete O'Hanlon10-Jan-08 10:02 

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.