home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- Caption = "Form1"
- ClientHeight = 1680
- ClientLeft = 3588
- ClientTop = 4044
- ClientWidth = 5964
- Height = 2004
- Left = 3540
- LinkTopic = "Form1"
- ScaleHeight = 1680
- ScaleWidth = 5964
- Top = 3768
- Width = 6060
- Begin VB.CommandButton Command1
- Caption = "Change"
- Height = 492
- Left = 120
- TabIndex = 2
- Top = 720
- Width = 1092
- End
- Begin VB.Timer Timer1
- Interval = 60
- Left = 1320
- Top = 840
- End
- Begin VB.Label Label2
- Height = 252
- Left = 1680
- TabIndex = 1
- Top = 120
- Width = 852
- End
- Begin VB.Label Label1
- Caption = "NumLock is: "
- Height = 252
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 1452
- End
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Private Keyboard As Keyboard
- Private Sub Command1_Click()
- Keyboard.NumLock = Not Keyboard.NumLock
- End Sub
- Private Sub Form_Load()
- ' Create a Keyboard object on start-up.
- Set Keyboard = New Keyboard
- End Sub
- Private Sub Timer1_Timer()
- If Keyboard.NumLock Then
- Label2.Caption = "On"
- Else
- Label2.Caption = "Off"
- End If
- End Sub
-