PowerPoint 演示文稿

• 2. 键盘事件
• KeyPress事件过程
• Sub Form_KeyPress(KeyAscii As Integer)
• Sub object_KeyPress([index As Integer,]KeyAscii As Integer)
• KeyDown事件过程
• Sub Form_KeyDown(keycode As Integer, shift As Integer)
• Sub object_KeyDown([index As Integer,]keycode As Integer,
• shift As Integer)
• KeyUp和KeyDown事件过程
• Sub Form_KeyUp(keycode As Integer, shift As Integer)
• Sub object_KeyUp([index As Integer,]keycode As Integer,
• shift As Integer)
l 参数说明
l Shift与鼠标事件过程Shift相同
l KeyCode：键盘扫描码
l KeyAscii：字符ASCII码