home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- Caption = "Ejemplo de los eventos GotFocus y LostFocus"
- ClientHeight = 1815
- ClientLeft = 1995
- ClientTop = 2835
- ClientWidth = 5310
- Height = 2220
- Left = 1935
- LinkTopic = "Form1"
- ScaleHeight = 1815
- ScaleWidth = 5310
- Top = 2490
- Width = 5430
- Begin VB.CommandButton Command2
- Caption = "Command2"
- Height = 495
- Left = 240
- TabIndex = 1
- Top = 1080
- Width = 1215
- End
- Begin VB.CommandButton Command1
- Caption = "Command1"
- Height = 495
- Left = 240
- TabIndex = 0
- Top = 240
- Width = 1215
- End
- Begin VB.Label Label2
- Alignment = 2 'Center
- Height = 375
- Left = 1680
- TabIndex = 3
- Top = 1200
- Width = 3255
- End
- Begin VB.Label Label1
- Alignment = 2 'Center
- Height = 375
- Left = 1680
- TabIndex = 2
- Top = 360
- Width = 3255
- End
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Private Sub Command1_GotFocus()
- Label1.Caption = "El bot
- n Command1 ha capturado el foco"
- End Sub
- Private Sub Command1_LostFocus()
- Label2.Caption = "El bot
- n Command1 ha perdido el foco"
- End Sub
- Private Sub Command2_GotFocus()
- Label1.Caption = "El bot
- n Command2 ha capturado el foco"
- End Sub
- Private Sub Command2_LostFocus()
- Label2.Caption = "El bot
- n Command2 ha perdido el foco"
- End Sub
-