Hide caret

3 posts, 1 answers
  1. Dominik
    Dominik avatar
    59 posts
    Member since:
    Dec 2012

    Posted 26 Nov 2015 Link to this post

    Hi,

    How to hide caret? 

    I want to stay with selection text possibility but without blinking caret.

  2. Answer
    Dess
    Admin
    Dess avatar
    1601 posts

    Posted 26 Nov 2015 Link to this post

    Hello Dominik,

    Thank you for writing.

    You can hide the caret by using the following code snippet in the Form.Load event:
    private void Form1_Load(object sender, EventArgs e)
    {
        Telerik.WinControls.RichTextEditor.UI.DocumentWebLayoutPresenter webLayoutPresenter =
            this.radRichTextEditor1.RichTextBoxElement.ActiveEditorPresenter as Telerik.WinControls.RichTextEditor.UI.DocumentWebLayoutPresenter;
        webLayoutPresenter.Caret.Width = 0;
    }

    I hope this information helps. Should you have further questions I would be glad to help.
     
    Regards,
    Dess
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Dominik
    Dominik avatar
    59 posts
    Member since:
    Dec 2012

    Posted 26 Nov 2015 in reply to Dess Link to this post

    Thanks!
Back to Top