vb.net - msgbox when user hits enter in visual basic 2010 -
I just want to alert the user hit "enter" key.
I present this event in a key,
if e Cacode = keys Then terminate the MSBBX ("msg") if
did not work, is it wrong?
Enter key UI design has strictly defined use, it executes the "accept" action of a dialogue. . In the Designer, select the form and set AcceptButton to your button. No code necessary.
Note that CancelButton has a similar use, it is hard-wired for the escape key.
Comments
Post a Comment