Closing a form immediately

I'm tying to close a form immediatly after checking if a file exists but when i try to close the form in the load event an error is generated.Can anyone suggest a way of closing a form without any user intervention, straight from start up.

Cheers

John



Answer this question

Closing a form immediately

  • sammy chen

    try Me.Close() or Me.Hide()

  • Thomas S. Andersen

    Never show it to start with.
  • Matt_

    Thanks,

    Thats the answer I've come up with and am currently recoding.

    Sorry for the daft question

    John


  • Closing a form immediately