0

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

Edited by __avd: Added [code] tags.

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by codeorder
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.