【VB开源代码栏目提醒】:网学会员,鉴于大家对VB开源代码十分关注,论文会员在此为大家搜集整理了“Ex13_11.frm”一文,供大家参考学习!
VERSION 5.00
Begin VB.Form Ex13_11
Caption = "KeyDown事件的使用"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3090
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
End
Attribute VB_Name = "Ex13_11"
Attribute
VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKey8 And Shift = 1 Then
MsgBox "您按下了*键"
ElseIf KeyCode = vbKeyF6 And Shift = 4 Then
Unload Me
End If
End Sub