RichTextBox Control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hai,

Is there anyway to disable the highlight the text means when you drag or
double click on the text, the text should not be highlighted.
I tried to call mousedown event and set focus to label control but it
doesn't help.

Thanks alot!!!
 
Hi Kasi,

No, I don't think you can disable the highlight of selected text, since that is how you can tell what is selected or not.

However, as you try to set the focus to something else I suspect you don't want the user to be able to select text at all.

In that case, try using a label with the BackColor set to White and the ForeColor to Black (or whatever style you prefer) and the BorderStyle to Fixed3D.
 
Hi Morten,
Thanks for your response. I tried in your way but the RichTextcontrol focus
always goes to top. :(
 
Back
Top