'Visual Basic
' In this example, Button1 is the control to display the ToolTip.
ToolTip1.SetToolTip(Button1, "Save changes")
// C#
// In this example, button1 is the control to display the ToolTip.
toolTip1.SetToolTip(button1, "Save changes");
// C++
// In this example, button1 is the control to display the ToolTip.
toolTip1->SetToolTip(button1, S"Save changes");