Cancel the "" sound in the carriage return

xiaoxiao2021-03-06  64

In the keypress event of TextBox

When I press it, I will listen to the annoying "嘀" sound, how to cancel it, huh, it is actually very simple, add a keyasii = 0 to OK.

Private sub combo1_keypress (Keyascii As INTEGER)

IF keyascii = 13 THEN

Keyascii = 0 'To execute the program

END IF

End Sub

转载请注明原文地址:https://www.9cbs.com/read-92166.html

New Post(0)