AD
Administrator
Syncfusion Team
February 29, 2004 07:00 AM UTC
Off my head, this is caused by bug in Windows Forms. The reason is that somewhere there is a control that got invisible while keeping keyboard focus. Actually Windows Forms tries to Validate control and fails, and then refuses to Close form. Usually, this happens when you have a panel and you show/hide it following application logic. Solution would be focusing another, visible control before hiding panel, for example navigation pane or status bar.
AD
Administrator
Syncfusion Team
March 10, 2004 08:34 PM UTC
orangy is right-on, I''ve had to deal with this in the past as well. In addition to the panel situation described, it can also occur if the focus is on a control in a tabpage, then you remove the tabcontrol from the form programmatically.