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 ();

}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top