I have 1 form with the progress bar and 4 buttons with the following code. I would like to create another form that shows the same progress bar with the same progress. Please help

Here's my code for progress bar

form load code is:

ProgressBar1.Minimum = 0
ProgressBar1.Maximum = 100
ProgressBar1.Value = 0

each button has the following code:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If ProgressBar1.Value < 100 Then

            ProgressBar1.Value += 5

 End If



Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

If ProgressBar1.Value < 100 Then

            ProgressBar1.Value += 20

        End If

etc etc

how do i get that progress bar to be show in another form?

If form2.ProgressBar1.Value < 100 Then

            ProgressBar1.Value += 20

        End If

????????????????????

Thanks

Form2.ProgressBar1.Value = Me.ProgressBar1.Value
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.