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
 
Back
Top