Mouse cursor flickers over selected text - how to prevent this?
问题 I'm encountering strange behaviour while moving the mouse over selected text in a RichTextBox (C#, .NET 4.0, WinForms): as I move the mouse cursor, it flickers between Cursors.Arrow and Cursors.IBeam. I found code that disables the flickering: protected override void WndProc(ref System.Windows.Forms.Message m) { if (m.Msg == WM_SETCURSOR) //WM_SETCURSOR is set to 0x20 return; } but then the mouse cursor is stuck as Cursors.Arrow, even when I manually set it to something else, ex: void RTFBox