>VFP6.0 I have placed a checkbox within a grid. I want the checkbox only to be selected/deselected on a mouse click or space bar, not a carriage return. Right now whenever you press enter to pass the column, it changes the status of the checkbox, is there any way to prevent it.
>
Create a subclass of the CheckBox class. Add the following to the KeyPress method of the new class:
LPARAMETERS nKeyCode, nShiftAltCtrl
IF nKeyCode = 13
NODEFAULT
KEYBOARD {TAB} PLAIN
ENDIF
RETURN
Add an instance of the new subclass rather than a base CheckBox to the Column.