Two things:
1) In case you aren't aware of this, the standardized way of checking and
unchecking a check box, with a key, is to use the space key. If you use
this method, the checking and unchecking is automatically taken care of. No
code is required to accomplish this and, again, this is the standard way to
do this.
2) Your code works properly on my machine (WinXP, RB2007r3). I tested it
in a new project, placing only your code in the KeyDown event of the
CheckBox. However, you're not accounting for the "other" Return/Enter
key--Chr(03).
I'm not 100% positive, but I believe both of these points hold true for both
Mac and Windows.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|