Hello, I'm new to VB and I'm making my first Application.
I want my ProgressBar to start loading when MessageBoxButton.OK is pressed.
This is my code:
Code:Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MessageBox.Show("My Text", "My Title", MessageBoxButtons.OKCancel, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly, False)
If AcceptButton Then
ProgressBar1.Start()
End If
End Sub
This is the part I'm having problems with.
Also, I'd like the ProgressBar1 to finish after a certain time after it started. How do I do that?Code:If AcceptButton Then
ProgressBar1.Start()

