Click here to Skip to main content
15,908,931 members
Home / Discussions / C#
   

C#

 
GeneralRe: Application terminates when window gets closed Pin
Not Active21-Aug-07 5:44
mentorNot Active21-Aug-07 5:44 
m_Window.Close() is different than Visibility.Hidden now isn't it.

In the first case, yes, the application will terminate because the form has been closed, thus terminating the message loop. In the second case the window is not closed, just hidden, so the message loop continues and the application does not terminate.


only two letters away from being an asset

GeneralRe: Application terminates when window gets closed Pin
MarioMARTIN21-Aug-07 5:47
MarioMARTIN21-Aug-07 5:47 
GeneralRe: Application terminates when window gets closed Pin
Not Active21-Aug-07 11:03
mentorNot Active21-Aug-07 11:03 
GeneralRe: Application terminates when window gets closed Pin
MarioMARTIN21-Aug-07 19:30
MarioMARTIN21-Aug-07 19:30 
GeneralRe: Application terminates when window gets closed Pin
Not Active22-Aug-07 0:21
mentorNot Active22-Aug-07 0:21 
AnswerRe: Application terminates when window gets closed Pin
Luc Pattyn21-Aug-07 5:52
sitebuilderLuc Pattyn21-Aug-07 5:52 
GeneralRe: Application terminates when window gets closed Pin
MarioMARTIN21-Aug-07 6:00
MarioMARTIN21-Aug-07 6:00 
GeneralRe: Application terminates when window gets closed Pin
Luc Pattyn21-Aug-07 6:23
sitebuilderLuc Pattyn21-Aug-07 6:23 
AnswerRe: Application terminates when window gets closed Pin
MarioMARTIN21-Aug-07 6:19
MarioMARTIN21-Aug-07 6:19 
GeneralRe: Application terminates when window gets closed Pin
Martin#21-Aug-07 8:17
Martin#21-Aug-07 8:17 
GeneralRe: Application terminates when window gets closed Pin
MarioMARTIN21-Aug-07 19:21
MarioMARTIN21-Aug-07 19:21 
GeneralRe: Application terminates when window gets closed Pin
Martin#21-Aug-07 21:17
Martin#21-Aug-07 21:17 
AnswerRe: Application terminates when window gets closed Pin
MarioMARTIN21-Aug-07 19:35
MarioMARTIN21-Aug-07 19:35 
Questionc# Pin
lankaudaranga21-Aug-07 2:40
lankaudaranga21-Aug-07 2:40 
AnswerRe: c# Pin
Justin Perez21-Aug-07 2:43
Justin Perez21-Aug-07 2:43 
GeneralRe: c# Pin
leckey21-Aug-07 3:54
leckey21-Aug-07 3:54 
GeneralRe: c# Pin
Justin Perez21-Aug-07 3:57
Justin Perez21-Aug-07 3:57 
GeneralRe: c# Pin
Martin#21-Aug-07 4:02
Martin#21-Aug-07 4:02 
GeneralRe: c# Pin
J4amieC21-Aug-07 4:38
J4amieC21-Aug-07 4:38 
GeneralIt leads to nothing but bad spirit! Pin
Martin#21-Aug-07 21:27
Martin#21-Aug-07 21:27 
GeneralRe: c# Pin
Talal Sultan21-Aug-07 5:34
Talal Sultan21-Aug-07 5:34 
GeneralRe: c# Pin
leckey21-Aug-07 5:44
leckey21-Aug-07 5:44 
AnswerRe: c# Pin
Talal Sultan21-Aug-07 2:49
Talal Sultan21-Aug-07 2:49 
AnswerRe: c# Pin
Colin Angus Mackay21-Aug-07 5:24
Colin Angus Mackay21-Aug-07 5:24 
QuestionProblem creating object to retrieve data Pin
Banjo Ayorinde21-Aug-07 2:06
Banjo Ayorinde21-Aug-07 2:06 

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.