Timer
-
Upload
miguel-cabrera -
Category
Business
-
view
36 -
download
2
Transcript of Timer
![Page 1: Timer](https://reader035.fdocuments.mx/reader035/viewer/2022071705/55a8a1bc1a28ab50718b4699/html5/thumbnails/1.jpg)
H E R R A M I E N T A
TIMER
![Page 2: Timer](https://reader035.fdocuments.mx/reader035/viewer/2022071705/55a8a1bc1a28ab50718b4699/html5/thumbnails/2.jpg)
¿QUÉ ES TIMER?
• El control Timer de Visual Basic 6.0 es un control real
que se ubica en un formulario en tiempo de diseño;
sin embargo, no se ve en tiempo de ejecución.
• El componente Timer de Visual Basic 2008 se
agrega a la bandeja en tiempo de diseño; como
componente, no tiene ninguna propiedad Parent.
• Básicamente es un temporizador el cual es usado
en Visual Basic , sus herramientas son tiempo,
mensajes, botones, etc…
![Page 3: Timer](https://reader035.fdocuments.mx/reader035/viewer/2022071705/55a8a1bc1a28ab50718b4699/html5/thumbnails/3.jpg)
¿CÓMO SE USA?
• En un formulario cualquiera, colocas un control timer y luego en el código colocas esto
Private Sub Form_Load()Timer1.Interval = 5000Timer1.Enabled = TrueEnd Sub
Private Sub Timer1_Timer()Timer1.Enabled = FalseUnload MeEnd Sub
ESO HACE QUE TU FORMA DESAPAREZCA EN 5 SEGUNDOS, ESE ES UNO DE LOS MUCHOS USOS QUE SE LE PUEDE DAR
![Page 4: Timer](https://reader035.fdocuments.mx/reader035/viewer/2022071705/55a8a1bc1a28ab50718b4699/html5/thumbnails/4.jpg)
DEFINICION
• En Visual Basic .NET, el Control de Temporizador
permite controlar eventos recurrentes durante el
tiempo de ejecución de una aplicación. El
Temporizador tiene algunas propiedades y
métodos específicos. Su propiedad más importante
es el Intervalo, que especifica con qué frecuencia
el Temporizador debería ejecutar su código.
![Page 5: Timer](https://reader035.fdocuments.mx/reader035/viewer/2022071705/55a8a1bc1a28ab50718b4699/html5/thumbnails/5.jpg)
EJEMPLOS
![Page 6: Timer](https://reader035.fdocuments.mx/reader035/viewer/2022071705/55a8a1bc1a28ab50718b4699/html5/thumbnails/6.jpg)
GRACIAS POR SU ATENCION