Click here to Skip to main content
15,912,897 members
Home / Discussions / C#
   

C#

 
QuestionHow do I capture an OnClosing type of event when Windows closes the app? Pin
eb3833512-Jul-07 3:46
eb3833512-Jul-07 3:46 
AnswerRe: How do I capture an OnClosing type of event when Windows closes the app? Pin
Luc Pattyn12-Jul-07 4:25
sitebuilderLuc Pattyn12-Jul-07 4:25 
GeneralRe: How do I capture an OnClosing type of event when Windows closes the app? Pin
eb3833512-Jul-07 4:39
eb3833512-Jul-07 4:39 
GeneralRe: How do I capture an OnClosing type of event when Windows closes the app? Pin
Luc Pattyn12-Jul-07 5:02
sitebuilderLuc Pattyn12-Jul-07 5:02 
eb38335 wrote:
SessionEnding


Yes.

In some discussions I read, it was stated that OnClosing does not always work
reliably. IIRC they claimed one should try using OnClosing, OnFormClosing and
SessionEnding; they probably each would call a single method that could handle
all kinds of exit scenarios.

It is my guess logoff will first generate a SessionEnding event, and
later on tries to close the forms, but may fail to do so, e.g. because
its time is limited, or for some reason it just decides to kill the processes.


Hope this helps.

Smile | :)




QuestionProblem in running the Instant messaging program having TCP client and server Pin
vrani12-Jul-07 2:24
vrani12-Jul-07 2:24 
AnswerRe: Problem in running the Instant messaging program having TCP client and server Pin
Christian Graus12-Jul-07 2:29
protectorChristian Graus12-Jul-07 2:29 
GeneralRe: Problem in running the Instant messaging program having TCP client and server Pin
vrani12-Jul-07 2:42
vrani12-Jul-07 2:42 
GeneralRe: Problem in running the Instant messaging program having TCP client and server Pin
Christian Graus12-Jul-07 3:05
protectorChristian Graus12-Jul-07 3:05 
QuestionThe magic of TransactionScope Pin
Le centriste12-Jul-07 1:45
Le centriste12-Jul-07 1:45 
JokeRe: The magic of TransactionScope Pin
Luc Pattyn12-Jul-07 1:53
sitebuilderLuc Pattyn12-Jul-07 1:53 
JokeRe: The magic of TransactionScope Pin
Le centriste12-Jul-07 1:54
Le centriste12-Jul-07 1:54 
GeneralRe: The magic of TransactionScope Pin
Martin#12-Jul-07 1:59
Martin#12-Jul-07 1:59 
AnswerRe: The magic of TransactionScope Pin
Christian Graus12-Jul-07 2:41
protectorChristian Graus12-Jul-07 2:41 
GeneralRe: The magic of TransactionScope Pin
Martin#12-Jul-07 2:47
Martin#12-Jul-07 2:47 
GeneralRe: The magic of TransactionScope Pin
Le centriste12-Jul-07 2:51
Le centriste12-Jul-07 2:51 
AnswerRe: The magic of TransactionScope Pin
Pete O'Hanlon12-Jul-07 2:49
mvePete O'Hanlon12-Jul-07 2:49 
GeneralRe: The magic of TransactionScope Pin
Le centriste12-Jul-07 2:53
Le centriste12-Jul-07 2:53 
AnswerRe: The magic of TransactionScope Pin
Judah Gabriel Himango12-Jul-07 5:05
sponsorJudah Gabriel Himango12-Jul-07 5:05 
Questionhow to close child form on the click event of toolstrip button Pin
monuSaini12-Jul-07 0:44
monuSaini12-Jul-07 0:44 
AnswerRe: how to close child form on the click event of toolstrip button Pin
Bekjong12-Jul-07 2:04
Bekjong12-Jul-07 2:04 
QuestionC# USB Detection [modified] Pin
donovan.solms12-Jul-07 0:43
donovan.solms12-Jul-07 0:43 
AnswerRe: C# USB Detection Pin
Giorgi Dalakishvili12-Jul-07 1:10
mentorGiorgi Dalakishvili12-Jul-07 1:10 
AnswerRe: C# USB Detection Pin
Martin#12-Jul-07 1:38
Martin#12-Jul-07 1:38 
GeneralRe: C# USB Detection Pin
donovan.solms12-Jul-07 1:54
donovan.solms12-Jul-07 1:54 
QuestionHow to convert CSV file to XLS file using C# Programme Pin
liyakhat_shahid12-Jul-07 0:27
liyakhat_shahid12-Jul-07 0:27 

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.