Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Catching only a ENTER in a singlelineedit control

Status
Not open for further replies.

mandrade

Programmer
Jul 19, 2010
1
BR
The event "modified" for a singlelineedit control is actived when the user presses a ENTER or a TAB or when the control loses focus. How can I run a piece of code only if the user types a Enter when the singlelineedit control is in focus?

sorry if my english is wrong XD
 
I always use this

IF KeyDown(Keyenter!) THEN

. . . // Statements for the F1 key

ELSEIF KeyDown(KeyControl!) THEN

. . . // Statements for the CTRL key

END IF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top