1Jan

Vb Net Update Progress Bar Backgroundworker Thread Lift

I will try my best to ask this question correctly. I think in the end the code will make more sence of what I am trying to accomplish.

I am just not sure of what to search for on the net. I have a form that has a button. ( this form is a child form of a parent form ( main form ). Anway.in this child form I have a button, and if clicked a bunch of code will get executed. I would like to show a Progress Bar / form in modal/ShowDialog format when this runs and slowely update the progress bar as each sub runs. I cant just call the form with fStatus.ShowDialog() cause then all code stops till this form is closed.

So What I am trying is to somehow open this form in a different thread - in ShowDialog format, so I can continue to run my code, and as my code runs, update the progress bar on the new status form created. At the end, close the status form, and let the user continue on.

Jun 25, 2017  Get YouTube without the ads. No thanks 3 months free. Find out why Close. VB NET How to Use BackgroundWorker & ProgressBar Thread. VB.net 2010 backgroundworker updating form progressbar. Using the code sample I supplied how can I make the background thread update the form's progress bar and% label? TIA.net vb.net winforms progress-bar backgroundworker. VB.NET normally provides the.

As the status form is open, the whole app is 'locked' because of showdialog, until it is complete. I hope this makes sence. Pervasive psql v11 keygen cracker. Below I have code that I think is in the right direction, but I am at a wall as I have never done any thread processing. Thanks for your help, Miro '==== some command button _click event on a current form. 'which is a child form of a mdi form. Miro, Are you using VS 2005 (.NET 2.0) or VS 2002/2003 (.NET 1.x)?.NET 2.0's new BackgroundWorker component makes this really easy! For example create a new dialog from, put a BackgroundWorker object on it, along with a ProgressBar.

Using the following code for the form. Im using vb express 2005 This is what i needed to get me started.

I will search the web and what I need for Background worker From what I understand reading the code, I cannot have the code I require in the 'form', i have to move the sub calls to the 'background worker' sub, and call the origina subs in there. Harlow' >I will try my best to ask this question correctly.

I think in the end the code will make more sence of what I am trying to accomplish. I am just not sure of what to search for on the net. I have a form that has a button.

( this form is a child form of a parent form ( main form ). Anway.in this child form I have a button, and if clicked a bunch of code will get executed. I would like to show a Progress Bar / form in modal/ShowDialog format when this runs and slowely update the progress bar as each sub runs. I cant just call the form with fStatus.ShowDialog() cause then all code stops till this form is closed. So What I am trying is to somehow open this form in a different thread - in ShowDialog format, so I can continue to run my code, and as my code runs, update the progress bar on the new status form created.

At the end, close the status form, and let the user continue on. As the status form is open, the whole app is 'locked' because of showdialog, until it is complete. I hope this makes sence.

Below I have code that I think is in the right direction, but I am at a wall as I have never done any thread processing. Thanks for your help, Miro '==== some command button _click event on a current form. 'which is a child form of a mdi form. Miro, From what I understand reading the code, I cannot have the code I require in the 'form', It depends on what you mean by 'form', do you mean your 'main' form, or do mean your 'worker' form. I would put all the subs in a 'worker' form, this 'worker' form would contain a ProgressBar, BackgroundWorker component, plus any other controls that may be needed (such as inputs, cancel buttons.

The 'main' form would display the 'worker' form: ' someplace one the 'main' form Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As EventArgs) Handles Button1.Click Using dialog As New WorkerDialog dialog.ShowDialog() End Using End Sub -- Hope this helps Jay B. Harlow.NET Application Architect, Enthusiast, & Evangelist T.S.

Bradley - 'Miro' Miro, Are you using VS 2005 (.NET 2.0) or VS 2002/2003 (.NET 1.x)?.NET 2.0's new BackgroundWorker component makes this really easy! For example create a new dialog from, put a BackgroundWorker object on it, along with a ProgressBar. Using the following code for the form. I was trying to keep the sub calls in the Main form, and somehow update the 'worker form' from anywhere.