Okay So I made a splash screen ( using another form ) in VB.
What I did was set the splash screen form to the starting form.
when the program open, the splash screen form will open.
what happen on that is that a timer will start ticking, and the progress bar value will equal to the timer's value
so this is what I did
Did that in Public Class Form2Code:Dim Progress As Integer
and in formLoad I enable the timer
and this is what I have for the timer
so Basically it'll just go up til 100 and when it hits 100% form 1 showsCode:ProgressBar1.Value = Progress If Progress < 100 Then Progress = Progress + 1 Label4.Text = "Loading : " & Progress & "%" If Progress = 100 Then Label4.Text = "Loading Completed" Timer1.Enabled = False Me.Visible = False form1.show
what I want to do is :
when the program is launch for the firs time, it'll take 10second to load, ( since I made it 100 )
but if the program is then open again, it'll take around 5seconds or less to load, it'll be as if it knows all the information already
so what do I do?




Reply With Quote