This is a migrated thread and some comments may be shown as answers.

Hiding Caret in readonly RadRichTextBox control.

1 Answer 375 Views
RichTextBox (obsolete as of Q3 2014 SP1)
This is a migrated thread and some comments may be shown as answers.
Pawan
Top achievements
Rank 1
Pawan asked on 21 Mar 2012, 03:34 PM
Hello,

I have functionality in my application to show some RTF notes in read only mode. I designed this functionality using RadRichTextBox control with ISReadOnly property set to true. Its working fine except the caret being shown blinking in first position of text box. However, since text box is read only, the visible blinking caret is being considered as a bug. I tried a lot to hide it, but no luck.
Please help me out to hide it.

Thanks
--Pawan

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 26 Mar 2012, 08:13 AM
Hi Pawan,

Thank you for writing.

You can hide the caret by setting its Width to 0
RadRichTextBox1.DocumentView.Caret.Width = 0

I hope that you find this information useful. Let us know if you have any other questions. 

Regards,
Stefan
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
RichTextBox (obsolete as of Q3 2014 SP1)
Asked by
Pawan
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or