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!

Capture key press in a Data Entry Grid

Status
Not open for further replies.

rzirpolo

Programmer
Apr 8, 2002
163
GB
In my application I have a Data Entry grid which consists of 4 checkboxes, when tabbing through these checkboxes it automatically checks these. I don't want this to happen, I only want these to be checked if they are left-clicked on by the mouse.

I have been trying to capture for this but am having no luck. I have tried using the event Key Press on the control, and also Key Down on the main form but to no luck. The only event which I can go to prior to it being checked is the GotFocus event, does anybody know how I can determine what key is pressed from here. I can then think of some validation.

Or if anybody has a better idea.

Thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top