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

Problem with active document in TabbedMDIManager

Thread ID:





73807 May 20,2008 05:57 PM UTC May 27,2008 10:21 AM UTC WinForms 1
Tags: Tools
Asked On May 20, 2008 05:57 PM UTC

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 10:21 AM UTC

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.

Please sign in to access our forum

or the page will be automatically redirected to 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