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鍵 都沒反應
arrow
arrow
    全站熱搜

    vbqa 發表在 痞客邦 留言(1) 人氣()