Hide Caret on RichTextBox

  • Thread starter Thread starter Daniel Bello Urizarri
  • Start date Start date
D

Daniel Bello Urizarri

Hi:

Is there any way to hide the caret on a RichTextBox control?

...so i can use it to show "links"
 
Daniel Bello Urizarri said:
Hi:

Is there any way to hide the caret on a RichTextBox control?

..so i can use it to show "links"


Use the "Enter" event and set the focus to something else..

Hope this helps :)


- Javier Campos
 
What a patch! But yes, it works..

protected override void OnEnter(EventArgs e)

{

//I know there is a "next control"

Parent.GetNextControl ( this, true ).Focus ();

}
 
Back
Top