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

Popular posts from this blog

iphone - How do I make a UIPickerView in a UIActionSheet -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -