hi ..a quick question..
I am a VB beginner so kind of want a small help, i created a startup page and made the progress bar load to 100. so when it loads to 100 I want the startup page to close and open another from called "frmsalesdata" . I made the frmsales data to open but how can i close the startup page..The code is below
Public Class startup
Private Sub startup_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Enabled = True
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If ProgressBar1.Value <> 100 Then ProgressBar1.Value = ProgressBar1.Value + "1"
If ProgressBar1.Value = 100 Then frmSalesData.Show()
End Sub
End Class
I am a VB beginner so kind of want a small help, i created a startup page and made the progress bar load to 100. so when it loads to 100 I want the startup page to close and open another from called "frmsalesdata" . I made the frmsales data to open but how can i close the startup page..The code is below
Public Class startup
Private Sub startup_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Enabled = True
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If ProgressBar1.Value <> 100 Then ProgressBar1.Value = ProgressBar1.Value + "1"
If ProgressBar1.Value = 100 Then frmSalesData.Show()
End Sub
End Class