Hiding Caret in readonly RadRichTextBox control.

2 posts, 0 answers
  1. Pawan
    Pawan avatar
    7 posts
    Member since:
    Mar 2012

    Posted 21 Mar 2012 Link to this post


    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.

  2. Stefan
    Stefan avatar
    2908 posts

    Posted 26 Mar 2012 Link to this post

    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. 

    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Back to Top