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. Image for the cookie policy date

Problem with active document in TabbedMDIManager

public CodeEditorControl CurrentEditor
{
get
{
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"


1 Reply

FS Fathima Shalini P Syncfusion Team 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:

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

Please let me know if any concerns.

Regards,
Fathima


Loader.
Live Chat Icon For mobile
Up arrow icon