Hi Bela,
>I use a different way! Make a ReadOnly propety. And in the gotfocus event of the chekbox:
>if this.ReadOnly
> return .f.
>endif
Be carefull! If you open such a class in VFP 6, save it, open it in VFP 5 and save it, the ReadOnly property is gone and your class won't work anymore in VFP 5 or the value is ressetted in VFP 6. That's because ReadOnly is a native property in VFP 6 and VFP 6 does recognize it as such. Therefore it removes it from the RESERVED3 field which makes VFP 5 think, that this property doesn't exist anymore and consequently it removes the value from the PROPERTIES field. *g*
Christof
--
Christof