home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form KeyTest
- BackColor = &H00FFFFFF&
- BorderStyle = 3 'Fixed Double
- Caption = "Key Code"
- ClientHeight = 1320
- ClientLeft = 3765
- ClientTop = 3360
- ClientWidth = 2100
- FontTransparent = 0 'False
- Height = 1725
- Icon = KEYTEST.FRX:0000
- Left = 3705
- LinkMode = 1 'Source
- LinkTopic = "Form2"
- MaxButton = 0 'False
- ScaleHeight = 1320
- ScaleWidth = 2100
- Top = 3015
- Width = 2220
- Begin Label Label
- BackColor = &H00FFFFFF&
- Caption = "Press any key to get its hex value."
- Height = 495
- Left = 255
- TabIndex = 0
- Top = 690
- Width = 1575
- End
- Begin Label Code
- BorderStyle = 1 'Fixed Single
- Height = 225
- Left = 705
- TabIndex = 1
- Top = 315
- Width = 555
- End
- ' KeyTest - a Visual Basic application to return the
- ' hexadecimal code for any key pressed
- ' Placed in the public domain by the author,
- ' Sue Mosher.
- Sub Form_KeyDown (KeyCode As Integer, Shift As Integer)
- Code.Caption = "&&H" + Hex$(KeyCode)
- End Sub
-