home *** CD-ROM | disk | FTP | other *** search
/ Solo Programadores 22 / SOLO_22.iso / disk22 / vbasic / foco.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1996-04-29  |  1.8 KB  |  66 lines

  1. VERSION 4.00
  2. Begin VB.Form Form1 
  3.    Caption         =   "Ejemplo de los eventos GotFocus y LostFocus"
  4.    ClientHeight    =   1815
  5.    ClientLeft      =   1995
  6.    ClientTop       =   2835
  7.    ClientWidth     =   5310
  8.    Height          =   2220
  9.    Left            =   1935
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   1815
  12.    ScaleWidth      =   5310
  13.    Top             =   2490
  14.    Width           =   5430
  15.    Begin VB.CommandButton Command2 
  16.       Caption         =   "Command2"
  17.       Height          =   495
  18.       Left            =   240
  19.       TabIndex        =   1
  20.       Top             =   1080
  21.       Width           =   1215
  22.    End
  23.    Begin VB.CommandButton Command1 
  24.       Caption         =   "Command1"
  25.       Height          =   495
  26.       Left            =   240
  27.       TabIndex        =   0
  28.       Top             =   240
  29.       Width           =   1215
  30.    End
  31.    Begin VB.Label Label2 
  32.       Alignment       =   2  'Center
  33.       Height          =   375
  34.       Left            =   1680
  35.       TabIndex        =   3
  36.       Top             =   1200
  37.       Width           =   3255
  38.    End
  39.    Begin VB.Label Label1 
  40.       Alignment       =   2  'Center
  41.       Height          =   375
  42.       Left            =   1680
  43.       TabIndex        =   2
  44.       Top             =   360
  45.       Width           =   3255
  46.    End
  47. Attribute VB_Name = "Form1"
  48. Attribute VB_Creatable = False
  49. Attribute VB_Exposed = False
  50. Private Sub Command1_GotFocus()
  51.   Label1.Caption = "El bot
  52. n Command1 ha capturado el foco"
  53. End Sub
  54. Private Sub Command1_LostFocus()
  55.   Label2.Caption = "El bot
  56. n Command1 ha perdido el foco"
  57. End Sub
  58. Private Sub Command2_GotFocus()
  59.   Label1.Caption = "El bot
  60. n Command2 ha capturado el foco"
  61. End Sub
  62. Private Sub Command2_LostFocus()
  63.   Label2.Caption = "El bot
  64. n Command2 ha perdido el foco"
  65. End Sub
  66.