# Adding a ToolTip to the Collapsed Splitter Panel

## Content

To add a ToolTip to display text when you hover over the collapsed splitter bar, simply set [CollapsedToolTip](/componentone/docs/win/online-splitcontainer/) 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](/componentone/docs/win/online-splitcontainer/splitterpanelbehavio/collapsibleandexpand).

### In Design View:

Complete the following steps:

1. Add [C1SplitContainer](/componentone/docs/win/online-splitcontainer/) 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 **Panel1**and select **Properties**. In the Properties window, set the CollapsedToolTip to “Click the button to expand Panel 1.”

### In Code View:

Complete the following steps:

* Import the following namespace into your project:

```vbnet
Imports C1.Win.C1SplitContainer
```

```csharp
using C1.Win.C1SplitContainer;
```

* Add the following code, which sets the CollapsedToolTip property, to the **Page\_Load** event:

```vbnet
Panel1.CollapsedToolTip = "Click the button to expand Panel 1."
```

```csharp
Panel1.CollapsedToolTip = "Click the button to expand Panel 1.";
```

* Run the program.
    ![](https://cdn.mescius.io/document-site-files/images/91a148ff-850c-4b63-a7b5-d269cf16bcf7/imagesext/image9_0.png)**This Topic Illustrates the Following**:

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:

<br>
![](https://cdn.mescius.io/document-site-files/images/91a148ff-850c-4b63-a7b5-d269cf16bcf7/imagesext/image9_15.png)

## See Also

[Setting a Minimum Size for a Splitter Panel](/componentone/docs/win/online-splitcontainer/splitcontainerforwin3/settingc1splitcontai/settingaminimumsizef)