Multi-threaded multi-windowed application not working
I might be in a little over my head but I have tried everything I can think of. I've looked at backgroundWorker, delegates, threadpool, and others and nothing seems to work. I'm currently working in C# but I'm open to other languages as long as they can create a stand alone application (not a web app or something like that). It's probably just that I don't fully understand it but here's what I'd like to do:

I want to create a program that does remote installs so that I can more easily manage the demand for particular software packages across several computers in a domain. I'm familiar with WMI and the remote execution is no trouble for me. The trouble I'm having stems from the GUI and threading. I'd like to be able to have a window launch at the start of each installation and give a progress bar with the approximate progress of the job. doesn't have to be particularly fancy or accurate, just has to look the part.

The issue I'm having is that if I create the window off the main thread I can access all of it's elements but it's not responsive due to the task of actually running the install. If I launch the window in a new thread I can't seem to get the main thread to recognize any of the elements in the window so I can't update the progress bar.

Would someone be willing to show me some working code that does the basics of what I'm trying to do? For example: a program that when a button is clicked a new window launches, fills up the progress bar with imaginary work (like thread sleep for 1 second between updates or something) while keeping both UI's responsive?

That would be a huge help and thanks in advance!
Multi-threaded multi-windowed application not working
===

I might be in a little over my head but I have tried everything I can think of. I've looked at backgroundWorker, delegates, threadpool, and others and nothing seems to work. I'm currently working in C# but I'm open to other languages as long as they can create a stand alone application (not a web app or something like that). It's probably just that I don't fully understand it but here's what I'd like to do:

I want to create a program that does remote installs so that I can more easily manage the demand for particular software packages across several computers in a domain. I'm familiar with WMI and the remote execution is no trouble for me. The trouble I'm having stems from the GUI and threading. I'd like to be able to have a window launch at the start of each installation and give a progress bar with the approximate progress of the job. doesn't have to be particularly fancy or accurate, just has to look the part.

The issue I'm having is that if I create the window off the main thread I can access all of it's elements but it's not responsive due to the task of actually running the install. If I launch the window in a new thread I can't seem to get the main thread to recognize any of the elements in the window so I can't update the progress bar.

Would someone be willing to show me some working code that does the basics of what I'm trying to do? For example: a program that when a button is clicked a new window launches, fills up the progress bar with imaginary work (like thread sleep for 1 second between updates or something) while keeping both UI's responsive?

That would be a huge help and thanks in advance!