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.
Unfortunately, activation email could not send to your email. Please try again.

Checking MDIMode before setting visibility

Thread ID:

Created:

Updated:

Platform:

Replies:

70628 Dec 20,2007 05:45 AM Dec 27,2007 04:03 PM Windows Forms 1
loading
Tags: Tools
Stefan Smith
Asked On December 20, 2007 05:45 AM

Hi,

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 04:03 PM

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)
{
if(pbItem.Items[3].Checked)
MessageBox.Show("Was in MDIMode");
}

I have attached the sample that demonstrates this completely.

http://websamples.syncfusion.com/samples/Tools.Windows/F70628/main.htm

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

Regards,
Nagaraj



CONFIRMATION

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.

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.

;