Private Sub Text14_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then MsgBox "You pressed the ENTER key."
If KeyAscii = 8 Then MsgBox "You Press backspace KEY"
End Sub
執行KeyAcsii = 8 可跳出MsgBox
但在textbox輸入數字後按enter鍵 都沒反應
If KeyAscii = 13 Then MsgBox "You pressed the ENTER key."
If KeyAscii = 8 Then MsgBox "You Press backspace KEY"
End Sub
執行KeyAcsii = 8 可跳出MsgBox
但在textbox輸入數字後按enter鍵 都沒反應
全站熱搜
留言列表