| Ribbon for WinForms Task-Based Help > Displaying ToolTips for the Ribbon Items |
To display a ToolTip for a Ribbon item, use the smart designer, Properties window, or add code to set the RibbonItem.ToolTip property. Each option is described below.
![]() |
Note: To learn how to create a rich ToolTip, see Creating a Rich ToolTip. |
Complete the following steps:

Optionally, you can set the RibbonItem.ToolTip property using the Properties window. Click the toggle button to reveal the item's properties in the Properties window. Locate the RibbonItem.ToolTip property and enter the ToolTip text in the box, for example, Bold.
![]() |
Note: In the following example an embedded resource containing the (16x16) image is used: Bold.png. To embed a resource, from the Project menu, choose YourProjectName Properties. From the Resources tab, select Add Resource and choose to add an existing file or add a new one. |
To write code in Visual Basic
| Visual Basic |
Copy Code
|
|---|---|
' type the Imports directive for the namespace
Imports C1.Win.C1Ribbon
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
With RibbonToggleButton1
' No text label
.Text = ""
' Set the 16x16 image
.SmallImage = My.Resources.Bold;
' Show a ToolTip
.ToolTip = "Bold"
End With
End Sub
|
|
To write code in C#
| C# |
Copy Code
|
|---|---|
// type the using directive for the namespace
using C1.Win.C1Ribbon;
private void Form1_Load(object sender, System.EventArgs e)
{
// No text label
this.ribbonToggleButton1.Text = "";
// Set the 16x16 image
this.ribbonToggleButton1.SmallImage = My.Resources.Bold;
// Show a ToolTip
this.ribbonToggleButton1.ToolTip = "Bold";
}
|
|