Exit WinForm app with an exit code
From: Anthony Hughes (ahughes_at_NOSPAMrm.com)
Date: 10/21/04
- Next message: Paul L: "Re: Smooth scrolling image or picturebox"
- Previous message: ebloch_at_phreaker.net: "cleaning up IWin32Window"
- Next in thread: Herfried K. Wagner [MVP]: "Re: Exit WinForm app with an exit code"
- Reply: Herfried K. Wagner [MVP]: "Re: Exit WinForm app with an exit code"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 21 Oct 2004 14:57:24 GMT
Hi All,
I've got a Windows Forms app that I want to return an error code to the caller
- it's a utility in a larger build process and I need to aboort the build if
the utility fails.
I've tried Environment.Exit(<code>) but I only ever get 0x00 returned for any
number tried. Can't see any other way of doing this - surely it must be
possible somehow?
Cheers
Anthony
- Next message: Paul L: "Re: Smooth scrolling image or picturebox"
- Previous message: ebloch_at_phreaker.net: "cleaning up IWin32Window"
- Next in thread: Herfried K. Wagner [MVP]: "Re: Exit WinForm app with an exit code"
- Reply: Herfried K. Wagner [MVP]: "Re: Exit WinForm app with an exit code"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|