标题:ShiftTest = Shift And 7 请教
只看楼主
a514556168
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2008-11-23
得分:0 
代码这样写最间单了:
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Select Case Shift
Case 1
MsgBox "你按下了shift"
Case 2
MsgBox "你按下了ctrl"
Case 4
MsgBox "你按下了alt"
Case 3
MsgBox "你按下了shift+ctrl"
Case 7
MsgBox "你按下了shift+ctrl+alt"
Case 5
MsgBox "你按下了shift+alt"
Case 6
MsgBox "你按下了ctrl+alt"
End Select
End Sub
2008-11-23 00:20
jyp19851119
Rank: 1
等 级:新手上路
帖 子:157
专家分:0
注 册:2008-2-26
得分:0 
2008-11-23 14:58



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-236101-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.121015 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved