I am using the docking manager to create an XP Task Bar as a menu on my form that can be pinned or not using the docking manager.
I am looking for the event to trap the closing of the docked element.
I need to prevent the user closing the 'menu'.
Ideally I would like the option of displaying the X or not, rather than trapping the mouse click and then cancelling it.
Any ideas appreciated
PSPrakash S Syncfusion Team January 15, 2003 07:27 AM
I saw your Direc-Trac support incident and realize that you've found out the solution. I am just posting this for the benefit of others that may be interested.
The DockingManager fires the 'DockVisibilityChanged' event whenever a control is closed or shown. This is merely a notification event and does not permit cancellation. The DockingManager, however, has a 'CloseEnabled' property that can be turned off to display controls without the 'Close' button.