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

IsReadOnly but not for "DEL"

1 Answer 48 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Vinicius
Top achievements
Rank 1
Vinicius asked on 01 Feb 2012, 07:18 PM
Hi there,
Im using the RadRichTextBox and sometimes i need to use it for Read Only, but the key "DELETE" keep erasing the text after i set that property (IsReadOnly = true). I also tried to cancel the event doing this:

        private void radRichTextBox1_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Delete) e.Handled = true;
        }

But it steel erasing my text, how can i fix it?

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 03 Feb 2012, 02:56 PM
Hello Vinicius,

We were not able to reproduce the behavior you have described in RadRichTextBox for Silverlight. We would appreciate some more details such as the version of the controls you are using and steps to reproduce.

On a side note, in the snippet you have posted you are using the KeyCode property of KeyEventArgs. The KeyEventArgs in Silverlight and WPF do not have a KeyCode property. Perhaps you are using RadRichTextBox for Winforms? If that is the case, please post your question in the Winforms forum.

Greetings,
Iva Toteva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
RichTextBox
Asked by
Vinicius
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or