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

Windows Forms

 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
Luc Pattyn10-Jan-08 12:56
sitebuilderLuc Pattyn10-Jan-08 12:56 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
Luc Pattyn10-Jan-08 12:55
sitebuilderLuc Pattyn10-Jan-08 12:55 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
RichardM110-Jan-08 13:08
RichardM110-Jan-08 13:08 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
Luc Pattyn10-Jan-08 13:13
sitebuilderLuc Pattyn10-Jan-08 13:13 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
RichardM110-Jan-08 13:30
RichardM110-Jan-08 13:30 
Generalscholar & gentleman Pin
Luc Pattyn10-Jan-08 13:43
sitebuilderLuc Pattyn10-Jan-08 13:43 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
Dave Kreskowiak10-Jan-08 13:11
mveDave Kreskowiak10-Jan-08 13:11 
QuestionEnding C# app gracefully on shutdown Pin
Clutchplate10-Jan-08 7:44
Clutchplate10-Jan-08 7:44 
I have C# app whose main window can be hidden (there's a NotifyIcon tray icon to allow it to be shown). In the FormClosing() function I check whether a shutdown is in progress and don't cancel that event if it is. If the PC is not shutting down the form is simply hidden.

Here's the problem: When I logoff/shutdown the PC, the mainforms FormClosing() function does not get called if it is hidden (i.e. in the tray) and thus the app never ends.
If the main form is visible it exits just fine.

I've looked high and low, but am unable to figure out what to trap in order to exit gracefully when the user logs off.

Any ideas/pointers?

Thanks,

- Lutz
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 
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 

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.