We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Checking MDIMode before setting visibility

Thread ID:





70628 Dec 20,2007 10:45 AM UTC Dec 27,2007 09:03 PM UTC WinForms 1
Tags: Tools
Stefan Smith
Asked On December 20, 2007 10:45 AM UTC


I have a docked control that was in MDIMode before it was hidden. Once it is hidden, how can I check whether it was an MDI child? I am using TabbedMDIManager.

J.Nagarajan [Syncfusion]
Replied On December 27, 2007 09:03 PM UTC

Hi Stefan ,

If your intention is to know the MDI status of the child form with Dockingmanager, then you have to handle DockingManager.DockContextMenu event. Please refer to the following code snippet.

this.dockingManager1.DockContextMenu += new Syncfusion.Windows.Forms.Tools.DockContextMenuEventHandler(dockingManager1_DockContextMenu);
ParentBarItem pbItem;
void dockingManager1_DockContextMenu(object sender, Syncfusion.Windows.Forms.Tools.DockContextMenuEventArgs arg)
pbItem = arg.ContextMenu.ParentBarItem as ParentBarItem;
pbItem.Items[2].Click += new EventHandler(MdiMainForm_Click);

void MdiMainForm_Click(object sender, EventArgs e)
MessageBox.Show("Was in MDIMode");

I have attached the sample that demonstrates this completely.


Please refer to it and let me know if this helps.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon