Thank for your reply but that''s not what I need. I want to change forecolor and backcolor only for the selected text, not for the whole line. I can do that with RichTextBox control of .NET
>Hi,
>
>I have attached a sample that illustrates how to apply forecolor and backcolor for the selected text.Please let me know if this meets your requirements.
>
>Thanks for your patience.
>
>Regards,
>Ebenezer.P
CS19.zip