Problema con el timer de un splash
Publicado por Anita (28 intervenciones) el 09/08/2007 14:59:28
Hola a todos. Tengo un splash en mi aplicacion programado asi:
Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim iCounter As Integer = 0
Me.Timer1.Interval = 1000
Me.Timer1.Enabled = True
If iCounter = 90 Then
Timer1.Stop()
Timer1.Enabled = False
Me.Close()
Else
iCounter = iCounter + 1
End If
End Sub
sin embargo, cuando ejecuto mi sistema el splash no dura los 90 segundos (y he intentado con tiempos muuuucho mas largos) y se cierra muy rapido. Que puedo hacer?
Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim iCounter As Integer = 0
Me.Timer1.Interval = 1000
Me.Timer1.Enabled = True
If iCounter = 90 Then
Timer1.Stop()
Timer1.Enabled = False
Me.Close()
Else
iCounter = iCounter + 1
End If
End Sub
sin embargo, cuando ejecuto mi sistema el splash no dura los 90 segundos (y he intentado con tiempos muuuucho mas largos) y se cierra muy rapido. Que puedo hacer?
Valora esta pregunta


0