Results 1 to 3 of 3

Thread: Enter key, textbox and default command button

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Location
    Perth, WA, Australia
    Posts
    6

    Post

    Okay, you old hands have guessed it already from the subject line:

    How can I keep the OK button as the default when the user presses the enter key on every part of the form EXCEPT the multiline text boxes, where I want it to do a carriage return and stay in the box?

    Thanks, CYOCONNOR

  2. #2
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523

    Post Just an option

    What you could do is to set defualt thing of command button to False in Text1_GetFocus Event and then set it back to True in Text1_LostFocus Event.
    HTH

  3. #3
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    Change the Default property of that button to True.

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