Hi all i`m trying to use a progress bar while i click a button to start my web cam.

It needs about 2-3 seconds to display the web cam capture image in my picture box.

When i use the following code the progress bar starts only when the capture image is displayed in my picture box, it waits those seconds to start.

What can i do about that problem?

Code:
 Private Sub TimerProgreesBar_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TimerProgreesBar.Tick

        If ProgressBar1.Value = ProgressBar1.Maximum Then
            ProgressBar1.Visible = False
            TimerProgreesBar.Enabled = False
        Else
            ProgressBar1.Value = ProgressBar1.Value + 10
        End If
    End Sub