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
close icon

TabbedMDI

I need to as much screen real estate as possible. Maximum columns and rows on the screen.

I want to turn off tabs completely and allow the user to navigate from menus.

Is there a way to turn off display of the tabs?

Thank you.

3 Replies

GS Gopalakrishnan S Syncfusion Team November 6, 2006 03:47 PM UTC

Hi Doug,

You can use MdiWindowListItem property of Menustrip for navigate the MdiForm and hide the tabs in TabbedMdi using Hide() or Visible property of MdiTabPanel in TabHost.

Here is the code snippet:

private void Form1_Load(object sender, EventArgs e)
{
this.menuStrip1.MdiWindowListItem = windowToolStripMenuItem; // Sets the MdiForm list to the Menu item

TabHost[] tabhost=tabbedMdiManager1.TabGroupHosts;

if (tabhost != null)
{
tabhost[0].MDITabPanel.Hide();
// tabhost[0].MDITabPanel.Visible = false;
}
}


Let me know if this works.

Regards,
S.Gopal.


DF Doug Finke November 6, 2006 09:13 PM UTC

It almost works. It does hide the tab. The space where the tab was is still there though. I need to get that back.

When I resize the the Form, the tab is redrawn.


GS Gopalakrishnan S Syncfusion Team November 7, 2006 12:05 AM UTC

Hi Doug,

You can use another approach for hiding the tabs to setting the visible property of TabbedMdiManager to false.

ex:

this.tabbedMdiManager.Visible=false;

Thank you for using Syncfusion Products.

Regards,
S.Gopal.

Loader.
Live Chat Icon For mobile
Up arrow icon