MainForm deactivated when I close a DocumentWindow

Docking/MDI for Windows Forms Forum

Posted 13 years ago by buraicsaba - Hungary
Avatar
MainForm deactivated when I close a Tab base DocumentWindow and not visible ToolWindow. If there is a ToolWindows visible, than close works as expected.
See Dock Controls demo to reproduce.

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
I have been working on this but have been unable to determine why it is happening. The parent form is deactivated at the point where the DocumentWindow.Dispose method calls the base Dispose method code in Control. So something in Microsoft's code is causing this to happen in this scenario. If there is any sort of focusable control on the Form (like a Button) when the document window is closed, the parent Form is not deactivated.

Since I'm not sure what is causing this, I've added a check to reactivate the parent Form if this scenario occurs. It will be in the next maintenance release.


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.