Closed Event never called on nested form

Docking/MDI for Windows Forms Forum

Posted 18 years ago by Erik Pepping - RADVenture B.V
Avatar
Hi,

I have a form inside a documentwindow. When closing the tab, I would expect that the close event of the form is called, but it is not. Is that correct?

Thanks in advance,

Erik Pepping

Comments (1)

Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Erik,

You have to remember that when using a Form as a control instead of as a top-level form, you might not get all the same events to occur. I would imagine that the WM_CLOSE message (which kicks off Closing events) is only sent to a Form by Windows if the Form is top-level.

If you are using our DocumentWindows, then handle the DockManager.WindowClosing event instead.


Actipro Software Support

The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.