>How do I prevent the KeyPress Event from typing the last pressed key ?
>
>I want to change curtain characters (code) to a text string.
Because this is an ActiveX control, you can't use the standard NODEFAULT method to stop a key being pressed, try this in the KEYPRESS event of your RichTextCtl
*** ActiveX Control Event ***
LPARAMETERS keyascii
IF keyAscii = ASC("A")
keyascii=0
THIS.SELTEXT = "DON'T PRESS A"
ENDIF