Exception on Form Load

  • Thread starter Thread starter Rakesh
  • Start date Start date
R

Rakesh

Hi,

I have a form, on whose FormLoad event I have an
exception being thrown.

I catch that exception and give a this.Close().

But this doesn't work; the error is 'Cannot call Close()
when a handle is being created'.

So how could i close the form during form load?

Thanks
Rakehs
 
Are you handling the FormLoad event?? If so, may be something you're doing
is causing the exception.

Can you post a snippet of code?

-vJ
 
Back
Top