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

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
 
S

Shankara Narayanan

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/
 
G

Guest

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.
 

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