How to Create progress bar with cancel button?

  • Thread starter Thread starter david
  • Start date Start date
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
 
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
 
Back
Top