请问如何屏蔽掉回车键+ctrl这两个键
如何屏蔽掉这两个同时按键 :回车+ctrl
以达到在textbox控件中不换行符的目的
感谢!!!
[解决办法]
方法很多 我随便说个
Private IsCtrlEnter As Boolean
Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 And Shift = 2 Then IsCtrlEnter = True
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If IsCtrlEnter = True Then
KeyAscii = 0
Print "Not allow Ctrl+Enter "
IsCtrlEnter = False
End If
End Sub