Glad to be of help...
Hopefully you can make it out to the next User Group. We're going to dig into VFP 8 in detail. The meeting is scheduled for Nov 12.
>Thanks!
>
>This was kind of what I was trying. But I made a global variable
>on the form and then adjust it for the click event and if they
>used the space bar. I set the variable on the gotfocus event of
>the checkbox and then I set the checkbox on its lost focus.
>(this would have worked except for the same thing I needed to
>add to your suggestion .... ThisForm.Refresh)
>
>Your suggestion is alot cleaner and easier. Thanks I am using it!
>
>:-)
>
>>Put this in KeyPress event of the checkbox:
>>
>>
>>IF nKeyCode = 13
>> This.Value = !This.Value
>>ENDIF
>>
>>
>>
>>>I have a grid with a checkbox in one of the columns.
>>>The end-users uses the 'Enter' key to move from
>>>column to column, upon reaching the Checkbox column
>>>when they press 'Enter', it flips the state of the
>>>checkbox, then calls all of the events and then
>>>moves to the next column. Is there a way to turn off
>>>the default of the checkbox?
>>>
>>>Thanks
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer