How to Create progress bar with cancel button?

D

david

Hi All,
I need to create reports which may take long time.
I want to give the customer "Cancel" button with progress bar at building
data.

I tried to use System.Threading.ThreadPool.QueueUserWorkItem, but
application freezes after creating report.

Please help!

Thanks in advance.

David
 
D

david

Hi Herfried,
Actually, I referred to the same demo.
My case has some differences.

In my appliacation, I have to build report data on the new thread and create
a user control to the application and show it.

Now, it seems building data is OK.
But showing the user control is slow.
The worst is if I click the buttons on the user control just created,
SOMETIMES not all the time, application has no response.

Any ideas?

Thanks,

David
 

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