I'm having a strange difficulty. Here is the order of events:

  1. User presses button on form1
  2. New Form object is created for from 2
  3. New form object '.show' command is fired
  4. Form 2 opens correctly
  5. In the Load Event of Form 2, the form attempts to do various things in a try, catch, finally clause
  6. On catch, I close form2 down '.close' as it cannot be used as something has gone wrong with the execution


However, my problem is this. It is acceptable for things to go wrong on the from 2 load event which is why I have implemented the try - catch functionality. However, when I close the form2 down as a result of the problem, a real error ocurrs 'Cannot access a disposed object' and the VB IDE refers me to Form1's '.show' event for Form2.

It is almost as if the form hasn't fully 'shown' before I am closing it down. Does anyone have any idea what the problem is here? Do I need to close down Form2 ourside of it's Load event handler so that Form1 thinks it has loaded correctly?

Cheers!