Hello!
Is there any way to remove (hide) the cursor in RichTextBoxe?

  • Hm Install ReadOnly tried? - VladD
  • Yes, I tried! He also remains! - cas

1 answer 1

Try this:

 [DllImport("user32.dll")] static extern bool HideCaret(IntPtr hWnd); private void Form1_Paint(object sender, PaintEventArgs e) { HideCaret(TextBox.Handle); } private void TextBox_MouseDown(object sender, MouseEventArgs e) { HideCaret(TextBox.Handle); } 

However, if you need only an inscription in a frame, then there are ways and simpler

  • @DreamChild No, I need to be able to highlight the text! - cas
  • and where do you have it written in the question? or it was necessary to guess? - DreamChild
  • Thank you, it works!!!!! - cas
  • And the mode only does not suit reading? - pincher1519
  • No not suitable - cas