Articles in this section
Category / Section

How to handle the event when the WinForms Docking Manager close button is clicked?

1 min read

Event

This can be achieved by accessing CaptionButton collection of DockingManager as follows.

C#

this.dockingManager1.CaptionButtons[0].Click += new CancelEventHandler(Close_Click);

 

VB

Me.dockingManager1.CaptionButtons(0).Click += New CancelEventHandler(Close_Click)

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied