Keep Focus back to the previous Textbox on failed validation
问题 I want Focus back to the previous Textbox if validation gets failed. I am validating the Textbox control value on lostFocus event. Need some help. This question was eralier too link is Keep Focus on Textbox after user tried to move to other control (on failed validation) in winforms, .net 3.5 WEC7 回答1: If you attempt to focus an element inside its own LostFocus handler you will face a StackOverflowException , I'm not sure about the root cause (I suspect the focus kind of bounces around) but