how to read a property of disposed object

csharp Mexico
  • 12 years ago

    Hi there I am new to this forum so hi to every one. I have a problem with an application I am developing an application. The application is suppose to call a form.showdialog() method to show the form. Th eform should download a package. But the problem is that when I cancel the download and try to see a property IsDownloadComplete it says the object is disposed. How can I read a property from that form? thanking in anticipation

  • 12 years ago

    Well... you can't. It's disposed.. the best you can do is on the form's FormClosing event write the value out somewhere else.

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The greatest performance improvement of all is when a system goes from not-working to working.” - John Ousterhout