Using the ToolTip class, you can provide hints to a user when the user places the pointer on a control. The ToolTip class is typically used to alert users to the intended use of a control.
private void toolTip1_Popup(object sender, PopupEventArgs e){ToolTip buttonToolTip = new ToolTip();buttonToolTip.ToolTipTitle = "Button Tooltip";buttonToolTip.IsBalloon = true;buttonToolTip.ShowAlways = true;buttonToolTip.SetToolTip(button1, "Hi User,Click me."); }
ToolTip.BackColor Property:BackColor Property is used Gets or sets the background color for the ToolTip.ToolTipobject.BackColor = System.Drawing.Color.Navy;ToolTip.ForeColor Property:ForeColor Property is used Gets or sets the foreground color for the ToolTip.ToolTipobject.ForeColor = System.Drawing.Color.Red;
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: