利用KeyDown事件,我们很轻易地就可以编出让程序响应两个按键的组合键的事件,如:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) 如果要让程序响应三个键的组合键就要麻烦一点,比如现在要用shift+b+m打开"部门"窗体。 Private Sub Form_Load() Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer) |
|站长邮箱|小黑屋|手机版|Office中国/Access中国
( 粤ICP备10043721号-1 )
GMT+8, 2025-4-4 05:20 , Processed in 0.080182 second(s), 17 queries .
Powered by Discuz! X3.3
© 2001-2017 Comsenz Inc.