ObjectDisposedException

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?
 
E

Evan Watson

Disregard

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top