Hi!
In the KeyPress event for checkbox put following code:
if nKeyValue=13
nodefault
KEYBOARD "{TAB}"
endif
HTH.
>Just a quickie...
>
>I've just been shown a very unpleasant bit of behaviour by a check box. If it has the focus and the user presses 'return' the value changes....eh????
>
>My colleague catches character 13 and flips the value to make sure it doesn't change. That can't be right...surely! Please tell there is a way of stopping this...I'm afraid my colleagues have been using VFP for too long and have got used to this sort of thing.
>
>Thanks in advance..
>
>Pablo
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.