ObjectDisposedException

  • Thread starter Thread starter Evan Watson
  • Start date Start date
E

Evan Watson

I have 2 forms which utilize the Singleton Pattern to load and allow to user
to hide and show the form quickly. The forms load correctly the first time
through, when the forms are hidden and then one of the forms is shown again
I receive an ObjectDisposedException on Controls within the forms. It there
a reason that controls are being GCed when the form is active but hidden?
 
Disregard

The problem was that Closing event was not running the e.Cancel = true and
this.Hide() correctly.
 
Back
Top