RichTextBox doesn't start selection on mouse down when the form has not focus
问题 I'm using WinForms and on my Form I have a RichTextBox. When my form is out of focus but visible and I try to highlight/select text, it does not allow me to until the form or textbox itself has focus. I've tried: txtInput.MouseDown += (s, e) => { txtInput.Focus(); } but to no avail and I can't seem to find anything online about this issue. When testing with another program like Notepad, it does possess the desired behavior. 回答1: MouseDown is too late. This is a workaround for sure, but may be