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.

Problem with active document in TabbedMDIManager

Thread ID:





73807 May 20,2008 01:57 PM May 27,2008 06:21 AM Windows Forms 1
Tags: Tools
Asked On May 20, 2008 01:57 PM

public CodeEditorControl CurrentEditor
if (this.TabbedMDIManager.ActiveDocument == null)
return null;

return ((Document)this.TabbedMDIManager.ActiveDocument).CodeEditor;
In this code CodeEditorControl shoud be selected CodeEditor ,but in Syncfusion i didn't found command "ActiveDocument"

Fathima Shalini P [Syncfusion]
Replied On May 27, 2008 06:21 AM

Hi Belarus,

Thank you for your interest in Syncfusion Products.

If your intention is to retrieve the currently selected Tab in TabbedMDIManager, we can use Form's ActiveMdiChild property. Please refer the below code snippets that retrieves the ActiveMdiChild in a MenuItem click event.

private void selectedTabToolStripMenuItem_Click(object sender, EventArgs e)
MessageBox.Show("Active Document is "+this.ActiveMdiChild.Name);

Please refer the below sample for more details:


Please let me know if any concerns.



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.