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.