Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/07/2009, 23:04
Judgement
 
Fecha de Ingreso: noviembre-2008
Mensajes: 136
Antigüedad: 15 años, 6 meses
Puntos: 2
Mensaje Respuesta: como puedo unir estas 3 cosas

Saludos, prueba esto, necesitas dos formularios y un modulo

En el modulo agrega este procedimiento:
Código vb:
Ver original
  1. Public Sub main()
  2.     Dim fSplash As New frmSplash
  3.    
  4.     DoEvents
  5.     Load frmMain
  6.     frmSplash.Show vbModal
  7.     frmMain.Show
  8.    
  9.     Set fSplash = Nothing
  10. End Sub

En el formulario Splash:

Código vb:
Ver original
  1. Dim intContador As Integer
  2.  
  3. Private Sub Form_Load()
  4.     intContador = 0
  5.     Timer1.Interval=100
  6.     ProgressBar1.Max=30
  7. End Sub
  8.  
  9. Private Sub Timer1_Timer()
  10.     intContador = intContador + 1
  11.     ProgressBar1.Value = intContador
  12.     If ProgressBar1.Value = 30 Then
  13.         Timer1.Enabled = False
  14.         Unload Me
  15.     End If
  16. End Sub

Espero que te sea de utilidad