Hello!
Is there any way to remove (hide) the cursor in RichTextBoxe?
1 answer
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
|
ReadOnlytried? - VladD