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

It depends on your programs structure--as in how the dialog is created and shown--but try closing the dialog Form (the one called with form.ShowDialog()) by setting the DialogResult equal to OK or Cancel.

Then make sure to read any property values before calling Dispose.

Thanks. Its working now

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.