How do I show collapsed item?

2 posts, 0 answers
  1. Chris Kirkman
    Chris Kirkman avatar
    37 posts
    Member since:
    Jul 2012

    Posted 27 Apr 2010 Link to this post

    I have a Docking.ToolTabStrip on the left side of my UI.  I have 3 separate Docking.ToolWindow items attached to it.

    On form load I call AutoHide() on each of these 3 tool windows (so they'll be visible, but collapsed).  I want to be able to programmatically force any one of them to pop up in the NON-Collapsed mode (pinned).  I can't figure this one out.

    Thanks in advance.
  2. Chris Kirkman
    Chris Kirkman avatar
    37 posts
    Member since:
    Jul 2012

    Posted 27 Apr 2010 Link to this post

    Wow, I guess I just needed to create a forum thread before I'd figure it out.

    It's actually really easy.

    1.  Assume I have a ToolTabStrip called m_strip and a ToolWindow called m_tw
    2.  m_tw.DockState = DockState.Docked;
    3.  m_strip.SelectedTab = m_tw;

    That's it!
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top