Could you please tell me the how to achieve that if we can?
In case we need the richtextbox to display some richtext only and I think the caret should be invisible.
Thank you very much! Well this proposed solution is worthy of a sneaky Halloween trick, but ... it works ... kinda ... :)
1. put a real small label on your Form, set its Text to an empty string. set its background color to match the Form color, or you can even set its background color to Transparent. Or put it behind something :)
2. Define 'Enter and 'Leave events for your RichtTextBox1:
C#
private void richTextBox1_Enter( object sender, EventArgs e) // want to clear any current selection: use this: // richTextBox1.SelectionLength = 0; // richTextBox1.SelectionStart = 0; // what's unfortunate here is that // there is no simple way to turn-off // the cursor completely ... not without // ... as I understand it ... using pInvoke // whether any of the alternate cursors you // can change it to would be satisfactory // to you ... I don't have a clue ! // Want a circle with a diagonal stripe: // richTextBox1.Cursor = Cursors.No; label1.Focus(); private void richTextBox1_Leave( object sender, EventArgs e) Cursor = Cursors.Default;
  • Read the question carefully.
  • Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  • If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  • Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question. Let's work to help developers, not make them feel stupid.
  •