Results 1 to 3 of 3

Thread: If I hit enter in a textbox..it's starts a sub. why?

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 1999
    Posts
    44

    Post

    Trying to figure this out. Wrote a medium-small program to print pictures...

    The last bug I have is that if I hit enter in a text box, the program starts the print subroutine. Not exactly a good result. How can I fix this?

    Using VB6... tried the "causes validation" option both ways...no luck

    Thanks a million,
    Scott

    [This message has been edited by scotty (edited 11-21-1999).]

  2. #2
    Addicted Member
    Join Date
    Sep 1999
    Posts
    229

    Post


    Hi scotty,

    Is it because of ...

    any of your TextBox's event (e.g keypress)
    calls your print subroutine ?

    or

    the print subroutine is called
    by one of the command button and
    the command button's DEFAULT property
    is TRUE ?

    Does it help ?

    Regard

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 1999
    Posts
    44

    Post

    Thanks... It was the second suggestion...
    default was get to true. Thanks so much, I never knew that setting was even there.
    Scott

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