Thank you for your question. I think the right tool should be used for the right purpose. Progress bar gives feedback to the user about the status of an action, but panel act more like a wrapper or a container for other tools or elements on the form. Thanks. I hope this answers question.
You need to put a me.close in Form1 in your code. Because Form1 will run in the background permanently, EVEN if frmDashbordvb is closed. Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick ProgressBar1.Increment(1) If (ProgressBar1.Value = 100) Then Me.Hide() Timer1.Enabled = False Timer1.Stop() frmDashbordvb.ShowDialog() Me.Close() End If End Sub
Excellent tutorial video!!! Thank you so much for sharing!!! :)
You are so welcome!
Thank you. Great tutorial.
You're welcome! I'm glad you found the tutorial helpful🔥
What if I used a panel instead of a progressive bar
Thank you for your question. I think the right tool should be used for the right purpose. Progress bar gives feedback to the user about the status of an action, but panel act more like a wrapper or a container for other tools or elements on the form. Thanks. I hope this answers question.
You need to put a me.close in Form1 in your code. Because Form1 will run in the background permanently, EVEN if frmDashbordvb is closed.
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
ProgressBar1.Increment(1)
If (ProgressBar1.Value = 100) Then
Me.Hide()
Timer1.Enabled = False
Timer1.Stop()
frmDashbordvb.ShowDialog()
Me.Close()
End If
End Sub
Great observation.❤
Good catch man👌
after i put me.close() the program really close, but frmdashboardvb doesn't load..