What is the difference between the Control.Enter and Control.GotFocus events?
问题 This may be a basic question, but I have to admit I've never truly understood what the difference between the Control.Enter and Control.GotFocus events is. http://msdn.microsoft.com/en-us/library/system.windows.forms.control.enter.aspx http://msdn.microsoft.com/en-us/library/system.windows.forms.control.gotfocus.aspx Is it a differentiation between capturing keyboard or mouse input or something else? 回答1: The GotFocus/LostFocus events are generated by Windows messages, WM_SETFOCUS and WM