aewarnick Posted February 28, 2003 Posted February 28, 2003 How can I shut my program down while loading? I tried this.Close(); and Application.Exit(); but, they did nothing. Quote C#
*Gurus* divil Posted February 28, 2003 *Gurus* Posted February 28, 2003 A constructor isn't a very good place to put something like this. If you're instantiating a class, it implies that you want to go all the way through instantiating it. You can probably close the application in the form's Load event, which will be called just after the constructor executes. Failing that, close the application in your Main function, before the form even gets instantiated. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
aewarnick Posted February 28, 2003 Author Posted February 28, 2003 It works fine in Load(). Thank you divil. Quote C#
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.