Employers - Post Free Jobs
Forum guidelines
AuthorQuestion
stop c# program
Posted on: 14 Dec 2007
What c# command can stop c# program after fail testing??
DON't click button.
TQ!

AuthorReply
Alan
  • 0
  • 0
Re: stop c# program
Posted on: 14 Dec 2007  

If it's a Window forms application, I'd try calling Application.Exit().

If it's a console application (or Application.Exit() doesn't work), I'd call Environment.Exit(1) instead.

 


SPONSORED BY

Offshore Software and Database Development
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.