ComponentOne SplitContainer for WinForms
SplitContainer for WinForms Task-Based Help / Setting C1SplitContainer Behaviors / Adding a ToolTip to the Collapsed Splitter Panel
In This Topic
    Adding a ToolTip to the Collapsed Splitter Panel
    In This Topic

    To add a ToolTip to display text when you hover over the collapsed splitter bar, simply set CollapsedToolTip property. In this topic, you will learn how to set the CollapsedToolTip property in design view and in code.

    For more information on ToolTips, see Collapsible and Expandable Panels.

    In Design View:

    Complete the following steps:

    1. Add C1SplitContainer to the form.
    2. Click on the C1SplitContainer’s smart tag to open its tasks menu.
    3. Select Add Panel to add a panel to the C1SplitContainer control.
    4. Click inside Panel1 and open its tasks menu. The C1SplitterPanel Tasks menu appears.
    5. Check Collapsible to make Panel1 collapsible and expandable.
    6. Right-click inside Panel1and select Properties. In the Properties window, set the CollapsedToolTip to “Click the button to expand Panel 1.”

    In Code View:

    Complete the following steps:

    Visual Basic

    Visual Basic
    Copy Code
    Imports C1.Win.C1SplitContainer
    

    To write code in C#

    C#
    Copy Code
    using C1.Win.C1SplitContainer;
    

    Visual Basic

    Visual Basic
    Copy Code
    Panel1.CollapsedToolTip = "Click the button to expand Panel 1."
    

    To write code in C#

    C#
    Copy Code
    Panel1.CollapsedToolTip = "Click the button to expand Panel 1.";
    

    After you've built the project, click the button to collapse panel1 and then hover over the splitter bar and observe that a ToolTip has been added to the collapsed splitter bar. The result will resemble the following image:


    See Also