press enter key in textbox to trigger button event handler

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kenneth6
    New Member
    • Mar 2007
    • 79

    press enter key in textbox to trigger button event handler

    msvc++:

    on windows form, there is a button and textbox.

    the button takes in the text from textbox to further the process.

    how can i allow user to press enter key in textbox to trigger the button event handler?
  • pootle
    New Member
    • Apr 2008
    • 68

    #2
    Originally posted by kenneth6
    msvc++:

    on windows form, there is a button and textbox.

    the button takes in the text from textbox to further the process.

    how can i allow user to press enter key in textbox to trigger the button event handler?
    Hi Kennth,

    Saying it is msvc++ does not really help...
    Is this a .NET Winforms program (C++/CLI), or an MFC/ATL program?

    Regards.

    Comment

    Working...