Forum guidelines
AuthorQuestion
stop c# program
Posted By Tey 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 By Alan 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.

 


Training for .Net Developers

SPONSORED BY

Custom Software 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.