Question about executing code in two forms simultaneously

The subject more or less explains it all. In my main form I will be executing a task that involvs a loop and can take a while. When the user starts this execution another small form will pop up with a progress bar on it. In order for this to work, I need the actual execution to occur in the main form at the same time the progress bar code is executing in the popup form.

However, if I use frmName.ShowDialog, the form calling that command "freezes" until the new form that is loaded is closed. How can I have the main form continue executing code after than line while the new form is running?
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories