locked
Enter key to act as 'Submit' or 'OK' button RRS feed

  • Question

  • I am Making wcf chat Application project  , in my project....  when user pressing Enter key In Windows form, new chat form must open ....but its not opening...please share some information on enter key for submit .
    Thursday, February 14, 2013 4:24 PM

Answers

  • Enable Forms KeyPreview Property to True. Add a Event handler for KeyPress Event for the Form & create an instance of the chat form & show it..

    It all Happenz Sendil

    • Proposed as answer by Bob Wu-MT Friday, February 15, 2013 5:57 AM
    • Marked as answer by Mike Feng Tuesday, March 12, 2013 5:24 AM
    Thursday, February 14, 2013 6:00 PM