Jump to content
Xtreme .Net Talk

Recommended Posts

  • *Gurus*
Posted

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.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...