How can I close windows in Form_Load ?

  • Thread starter Thread starter Boba
  • Start date Start date
B

Boba

Hello,


Is there any possible to stop the load of a specific
form and close it in the Form_Load event ?


With thanks.
 
if you're talking about a form within your program, just do this:

FormName.Close();

if you want to close the form that's currently being loaded, do this:

this.Close();

closing separate windows outside of your pogram requires some API.

Chris LaJoie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top