Click here to Skip to main content
15,886,199 members
Home / Discussions / C#
   

C#

 
GeneralRe: Excel and C# Pin
Dave Kreskowiak14-Oct-09 6:35
mveDave Kreskowiak14-Oct-09 6:35 
AnswerRe: Excel and C# Pin
Md. Marufuzzaman14-Oct-09 5:53
professionalMd. Marufuzzaman14-Oct-09 5:53 
GeneralRe: Excel and C# Pin
antsims14-Oct-09 6:20
antsims14-Oct-09 6:20 
AnswerRe: Excel and C# Pin
Richard MacCutchan14-Oct-09 6:28
mveRichard MacCutchan14-Oct-09 6:28 
QuestionProblem with quitting an application Pin
Frank Alviani14-Oct-09 4:57
Frank Alviani14-Oct-09 4:57 
AnswerRe: Problem with quitting an application Pin
Dave Kreskowiak14-Oct-09 5:20
mveDave Kreskowiak14-Oct-09 5:20 
GeneralRe: Problem with quitting an application Pin
Frank Alviani14-Oct-09 5:44
Frank Alviani14-Oct-09 5:44 
GeneralRe: Problem with quitting an application Pin
Dave Kreskowiak14-Oct-09 6:17
mveDave Kreskowiak14-Oct-09 6:17 
OK, I read the original post wrong. Application.Exit() is what you should be using. If it's not working, then you've got something else wrong in your app that is preventing your app from closing.

How do you have your app processing command line arguments and printing your document? Are you doing this in the forms Load event? IIRC, calling Application.Exit() in the Load event doesn't do anything.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008
But no longer in 2009...




GeneralRe: Problem with quitting an application Pin
Frank Alviani14-Oct-09 8:27
Frank Alviani14-Oct-09 8:27 
GeneralRe: Problem with quitting an application Pin
Dave Kreskowiak14-Oct-09 9:10
mveDave Kreskowiak14-Oct-09 9:10 
GeneralMobile phone programs Pin
Enobong Adahada14-Oct-09 4:45
Enobong Adahada14-Oct-09 4:45 
GeneralRe: Mobile phone programs Pin
EliottA14-Oct-09 4:51
EliottA14-Oct-09 4:51 
QuestionInvalidation, Painting problems Pin
DahrkDaiz14-Oct-09 4:22
DahrkDaiz14-Oct-09 4:22 
AnswerRe: Invalidation, Painting problems Pin
Luc Pattyn14-Oct-09 4:42
sitebuilderLuc Pattyn14-Oct-09 4:42 
GeneralRe: Invalidation, Painting problems Pin
DahrkDaiz14-Oct-09 4:50
DahrkDaiz14-Oct-09 4:50 
QuestionCreate the database with LINQ Pin
Mohammad Dayyan14-Oct-09 4:18
Mohammad Dayyan14-Oct-09 4:18 
AnswerRe: Create the database with LINQ Pin
Dave Kreskowiak14-Oct-09 5:15
mveDave Kreskowiak14-Oct-09 5:15 
GeneralRe: Create the database with LINQ Pin
Mohammad Dayyan14-Oct-09 15:38
Mohammad Dayyan14-Oct-09 15:38 
GeneralRe: Create the database with LINQ Pin
Dave Kreskowiak14-Oct-09 16:15
mveDave Kreskowiak14-Oct-09 16:15 
GeneralRe: Create the database with LINQ Pin
Mohammad Dayyan14-Oct-09 23:29
Mohammad Dayyan14-Oct-09 23:29 
GeneralRe: Create the database with LINQ Pin
Dave Kreskowiak15-Oct-09 1:09
mveDave Kreskowiak15-Oct-09 1:09 
Questionapplication validation did not succeed Pin
tamir90114-Oct-09 4:10
tamir90114-Oct-09 4:10 
AnswerRe: application validation did not succeed Pin
Not Active14-Oct-09 4:18
mentorNot Active14-Oct-09 4:18 
GeneralRe: application validation did not succeed Pin
tamir90114-Oct-09 23:57
tamir90114-Oct-09 23:57 
Questionlandscape page in crystal report Pin
Enobong Adahada14-Oct-09 4:05
Enobong Adahada14-Oct-09 4:05 

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.