Click here to Skip to main content
15,892,269 members
Home / Discussions / C#
   

C#

 
GeneralRe: Application shuts down and not just the form Pin
praveenvkumarv5-Dec-08 4:06
praveenvkumarv5-Dec-08 4:06 
GeneralRe: Application shuts down and not just the form Pin
Saamir5-Dec-08 4:12
Saamir5-Dec-08 4:12 
GeneralRe: Application shuts down and not just the form Pin
Saamir5-Dec-08 4:07
Saamir5-Dec-08 4:07 
GeneralRe: Application shuts down and not just the form Pin
vlinker5-Dec-08 4:19
vlinker5-Dec-08 4:19 
GeneralRe: Application shuts down and not just the form Pin
Saamir5-Dec-08 4:23
Saamir5-Dec-08 4:23 
GeneralRe: Application shuts down and not just the form Pin
vlinker5-Dec-08 4:46
vlinker5-Dec-08 4:46 
GeneralRe: Application shuts down and not just the form Pin
Saamir5-Dec-08 5:09
Saamir5-Dec-08 5:09 
AnswerRe: Application shuts down and not just the form Pin
DiscoJimmy5-Dec-08 5:32
DiscoJimmy5-Dec-08 5:32 
The general pattern for this is to have the main form - the one that is hiding in the system tray - own a reference to the other form.

Then when that child form needs to close, either call this.Close() from inside the child form, or have it call an event. The parent form(the one that's hiding) will subscribe to that event, and call Dispose() on it's reference to the child form. That should kill the child form while leaving the parent form running in the system tray.

Just don't call Application.Exit() or it will kill all your forms.
GeneralRe: Application shuts down and not just the form Pin
Saamir5-Dec-08 6:25
Saamir5-Dec-08 6:25 
GeneralRe: Application shuts down and not just the form Pin
DiscoJimmy5-Dec-08 7:36
DiscoJimmy5-Dec-08 7:36 
GeneralRe: Application shuts down and not just the form Pin
Saamir5-Dec-08 7:41
Saamir5-Dec-08 7:41 
GeneralRe: Application shuts down and not just the form Pin
DiscoJimmy5-Dec-08 7:47
DiscoJimmy5-Dec-08 7:47 
QuestionAscii to Hex Conversion [modified] Pin
asquaredtech5-Dec-08 3:47
asquaredtech5-Dec-08 3:47 
GeneralRe: Ascii to Hex Conversion Pin
Luc Pattyn5-Dec-08 4:12
sitebuilderLuc Pattyn5-Dec-08 4:12 
GeneralRe: Ascii to Hex Conversion Pin
asquaredtech5-Dec-08 5:23
asquaredtech5-Dec-08 5:23 
QuestionCreate IE autofill toolbar using C# Pin
jpselvam5-Dec-08 3:00
jpselvam5-Dec-08 3:00 
AnswerRe: Create IE autofill toolbar using C# Pin
Thomas Stockwell5-Dec-08 7:13
professionalThomas Stockwell5-Dec-08 7:13 
GeneralRe: Create IE autofill toolbar using C# Pin
jpselvam5-Dec-08 21:20
jpselvam5-Dec-08 21:20 
Questiondetect window drag Pin
g00fyman5-Dec-08 2:31
g00fyman5-Dec-08 2:31 
AnswerRe: detect window drag Pin
Ravi Bhavnani5-Dec-08 3:03
professionalRavi Bhavnani5-Dec-08 3:03 
GeneralRe: detect window drag Pin
g00fyman5-Dec-08 16:04
g00fyman5-Dec-08 16:04 
Questionsending message to a mobile through the software developed in c#.net by using bluetooth Pin
praveenvkumarv5-Dec-08 2:12
praveenvkumarv5-Dec-08 2:12 
AnswerRe: sending message to a mobile through the software developed in c#.net by using bluetooth Pin
vlinker5-Dec-08 3:20
vlinker5-Dec-08 3:20 
GeneralRe: sending message to a mobile through the software developed in c#.net by using bluetooth Pin
praveenvkumarv5-Dec-08 4:04
praveenvkumarv5-Dec-08 4:04 
GeneralRe: sending message to a mobile through the software developed in c#.net by using bluetooth Pin
vlinker5-Dec-08 4:14
vlinker5-Dec-08 4:14 

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.