How could a TextBox's cursor move to the beginning of the text after calling SelectAll()?
问题 On some occasions, when focus is set to a particular textbox, the cursor parks itself before the text like this: Yet, the TextBox has a GotFocus handler that explicitly selects all the text: private void txtQty_GotFocus(object sender, EventArgs e) { try { if (deviceInfo.isKeyboardShown()) { SipShowIM(SIPF_OFF); } txtQty.SelectAll(); txtQty.BackColor = Color.Yellow; } catch (Exception ex) { NRBQ.ExceptionHandler(ex, "frmEntry.txtQty.GotFocus"); } } Also, the BackColor is not set to yellow. But