When the feature Automatically move pointer to the default button is enabled in Control Panel, application crashes in Form.OnVisibleChanged
when Form's AcceptButton
does not derive from Windows.Forms.Control
.
This is clearly a bug in Windows Forms, the documentation doesn't say that IButtonControl AcceptButton
must derive from Control
.