Results 1 to 4 of 4

Thread: [RESOLVED] Using Enter to use a button

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2009
    Posts
    14

    Resolved [RESOLVED] Using Enter to use a button

    Hey, Im making a basic accounting program at the moment, and I was wondering how I would go about this.

    The user needs to fill in multiple textboxes, then I want them to be able to press Enter to use the command button that submits it all, rather than clicking on the button with a mouse or tabbing and pressing enter.

    I know I need to use ascii or something, and the ascii code for enter is 13, but I dont know the code to get all this to work, and where to put the code, if anyone could help, it would be much appreciated, thanks

  2. #2

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2009
    Posts
    14

    Re: Using Enter to use a button

    Quote Originally Posted by MartinLiss View Post
    Just set the Default property of the command button to True.
    Oh wow, I cant believe it was that simple, thanks a million mate. *Reputation*

  4. #4
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: Using Enter to use a button

    You're welcome. Also please help us now by marking the thread as resolved. If you have JavaScript enabled you can do that easily by pulling down the Thread Tools menu and selecting the Mark Thread Resolved item.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width