How to display progress bar in windows form during execution of DTS package?

  • Thread starter Thread starter owais
  • Start date Start date
O

owais

H

I want to display progress bar during execution of windows form. When I execute DTS package the form will idle till the DTS package finishes

Please help me in this regard. its an urgen

Thank
owais
 
Hi -

Check the ProgressBar class/Progress Control in Windows Forms in MSDN.
This has samples of how to do.

Shankar.

10/4/2004 12:34:02 PM


<#[email protected]>


Hi

I want to display progress bar during execution of windows form.
When I execute DTS package the form will idle till the DTS package
finishes.
Please help me in this regard. its an urgent





Posted using Wimdows.net Newsgroups - http://www.wimdows.
net/newsgroups/
 
The problem probably is that the code executing the DTS package is running on
the same thread as the progress bar. In order to make this work you need to
run the DTS package on a separate worker thread. This worker thread is not
allowed to touch the progress bar directly as only the thread owning the
progress bar is allowed to do this, but it can serialize calls to the
progress bar by calling ProgressBar.Invoke (Invoke is implemented by the
Control class).

HTH, Jakob.
 
Back
Top