>>>I'm working with a RichText Control and in some specific situations I'd like to forbid the user to use DELETE or BACKSPACE from keyboard.
>>>Does anybody know a command that could suppress the effect of trying to use these keys?
>>>
>>>Thanks...
>>
>>Hi Renato,
>>
>>The simplest way would be in the cases needed to issue:
>>
>>ON KEY LABEL DEL *
>>ON KEY LABEL BACKSPACE *
>>
>>Now the delete and backspace keys will not work. Just remember to set them back with the same commands minus the asterix's.
>
>Thank you for helping, Colin (I haven't seen anywhere the syntax above).
>
>Unfortunately, the RichText Control simply ignores it.
>I've tried within an EditBox and it works fine, but I'm not using EditBox in this case because it also has some problems with the SelStart property.
>
>I wonder if MS has solved it in VFP 5.0a...
>
>Renato.
i think that's something you'd have to turn off in the .ocx control....