Wonder if anyone can shed some light on this problem for me. Create an ActiveX control out of a TRichEdit component. Create a method call on the control (via the Type Library) to set some text attributes, including setting the text to 'protected' (e.g. FDelphiControl.SelAttributes.protected := true). Install the control and call the method from a test application. All the other attributes can be set (e.g. font, style etc), but not the protected state. It doesn't matter if you use the SelAttributes property or the API call to change protected. They both return normally (with a successful return value in the case of the API call), but nothing actually happens. If you do the same thing using an ActiveForm (i.e. RichEdit control on the form), everything works fine. I've played with every windows handle I can find, and still can't get it to work in an OCX. Baffled and open to suggestions! Chris O'Brien This e-mail message has been scanned and cleared by MailMarshal http://www.gen-i.co.nz --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/