Click here to Skip to main content
15,914,013 members
Home / Discussions / C#
   

C#

 
GeneralRe: unicode strings Pin
Heath Stewart20-Aug-04 12:18
protectorHeath Stewart20-Aug-04 12:18 
GeneralCapture Image of a Control (That is off screen) Pin
richie253920-Aug-04 9:46
richie253920-Aug-04 9:46 
GeneralRe: Capture Image of a Control (That is off screen) Pin
Nick Parker20-Aug-04 11:08
protectorNick Parker20-Aug-04 11:08 
GeneralRe: Capture Image of a Control (That is off screen) Pin
Heath Stewart20-Aug-04 12:23
protectorHeath Stewart20-Aug-04 12:23 
GeneralDIT file size Pin
KoalaCowboy20-Aug-04 9:26
KoalaCowboy20-Aug-04 9:26 
GeneralRe: DIT file size Pin
Not Active20-Aug-04 10:10
mentorNot Active20-Aug-04 10:10 
GeneralRe: DIT file size Pin
KoalaCowboy23-Aug-04 5:00
KoalaCowboy23-Aug-04 5:00 
GeneralRe: Application.Exit() Pin
Colin Angus Mackay20-Aug-04 8:21
Colin Angus Mackay20-Aug-04 8:21 
To quote from MSDN: This method stops all running message loops on all threads and closes all windows of the application. This method does not force the application to exit. The Exit method is typically called from within a message loop, and forces Run to return. To exit a message loop for the current thread only, call ExitThread.
[^]

So, all it does is, in the static Main() method on your main form, it causes the Application.Run() method to return to the caller, i.e. static Main() You can still do things after that - but normally that is the last line in the application anyway, so the application will naturally terminate.

Does this help?


"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell

Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!


GeneralRe: Application.Exit() Pin
eggie520-Aug-04 12:03
eggie520-Aug-04 12:03 
GeneralRe: Application.Exit() Pin
Not Active20-Aug-04 8:23
mentorNot Active20-Aug-04 8:23 
GeneralRe: Application.Exit() Pin
Alex Leshinsky21-Aug-04 10:00
Alex Leshinsky21-Aug-04 10:00 
GeneralApplication.Exit() Pin
eggie520-Aug-04 8:08
eggie520-Aug-04 8:08 
GeneralDataGrid Scrollbars Pin
ryane20-Aug-04 8:06
ryane20-Aug-04 8:06 
QuestionCan someone help? Pin
Larkdog20-Aug-04 7:59
Larkdog20-Aug-04 7:59 
AnswerRe: Can someone help? Pin
Colin Angus Mackay20-Aug-04 8:09
Colin Angus Mackay20-Aug-04 8:09 
GeneralRe: Can someone help? Pin
Larkdog20-Aug-04 8:22
Larkdog20-Aug-04 8:22 
GeneralRe: Can someone help? Pin
Colin Angus Mackay20-Aug-04 8:40
Colin Angus Mackay20-Aug-04 8:40 
GeneralRe: Can someone help? Pin
Larkdog20-Aug-04 10:06
Larkdog20-Aug-04 10:06 
GeneralRe: Can someone help? Pin
Colin Angus Mackay20-Aug-04 10:48
Colin Angus Mackay20-Aug-04 10:48 
GeneralRe: Can someone help? Pin
je_gonzalez20-Aug-04 13:19
je_gonzalez20-Aug-04 13:19 
GeneralRe: Can someone help? Pin
Colin Angus Mackay20-Aug-04 21:18
Colin Angus Mackay20-Aug-04 21:18 
AnswerRe: Can someone help? Pin
sreejith ss nair20-Aug-04 19:35
sreejith ss nair20-Aug-04 19:35 
GeneralRe: Can someone help? Pin
Colin Angus Mackay21-Aug-04 0:13
Colin Angus Mackay21-Aug-04 0:13 
GeneralRe: Can someone help? Pin
sreejith ss nair21-Aug-04 0:50
sreejith ss nair21-Aug-04 0:50 
GeneralScrollbars Pin
Gary Kirkham20-Aug-04 7:45
Gary Kirkham20-Aug-04 7:45 

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.