PDA

Click to See Complete Forum and Search --> : If I hit enter in a textbox..it's starts a sub. why?


scotty
Nov 21st, 1999, 08:40 AM
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).]

Keiko
Nov 21st, 1999, 09:21 AM
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

scotty
Nov 22nd, 1999, 02:45 AM
Thanks... It was the second suggestion...
default was get to true. Thanks so much, I never knew that setting was even there.
Scott