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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with Checkboxes

Status
Not open for further replies.

Serincino

Programmer
Jun 13, 2003
61
US
In my app, the user moves though textboxes by entering data and then hiting enter. One of my selections is a simple checkbox. I'm curious if there is a way that when the user hits enter over it that it will not check the box, but just simply move off it to the next object that the tab order is set to. I want to make the usre click to check the box and that's it. Any help would be grateful.

-Serincino
 
Put the following into the Checkbox's KeyPress event...

LPARAMETERS nKeyCode, nShiftAltCtrl
IF nKeyCode = 13
NODEFAULT
thisform.MyNextControl.Setfocus()
ENDIF


Slighthaze = NULL

[ul][li]FAQ184-2483
An excellent guide to getting a fast and accurate response to your questions in this forum.[/li][/ul]
 
Thanks a bunch.. that worked great. didn't know about the NODEFAULT command.

-Serincino
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top