RichTextBox

  • Thread starter Thread starter john sutor
  • Start date Start date
J

john sutor

Even if I have an rtb that has the ReadOnly property set to true, if I click
on the control, the cursor starts blinking at the beginnig as if it were
editable. If messes with the users head. How can I ensure that the control
will not be able to have this cursor in it?
 
john said:
Even if I have an rtb that has the ReadOnly property set to true, if I click
on the control, the cursor starts blinking at the beginnig as if it were
editable. If messes with the users head. How can I ensure that the control
will not be able to have this cursor in it?

Note that the flashing thing inside a text box is called the *caret*.

This question has come up many times before (check Google Groups, for
example). It appears that it's not possible to reliably remove the
flashing caret in a standard Win32 Rich Edit or a .NET RichTextBox.
 
Maybe you could stop the user from focusing on the RTB.
In the enter event set the focus to something else.
Maybe the previous control that had the focus.
HTH
JB
 
You can change the blinking cursor, to a solid box, by selecting one character, whenever the selected text length is zero.

Let me know if you need the code to do this.
-Hamfiles-
 
Back
Top