Saturday, June 1, 2013
Adding ToolTip text on Combox box item in csharp
To add tooltip text in each item of combo box write following code in selectedIndex change event
Suppose cboReason is a Combox box control.
if (cboReason.Items.Count > 0)
{
ToolTip tp = new ToolTip();
tp.SetToolTip(cboReason, cboReason.Text);
tp.AutoPopDelay = 5000;
tp.InitialDelay = 1000;
tp.ReshowDelay = 500;
tp.ShowAlways = true;
}
Subscribe to:
Post Comments (Atom)
Author Details
Md Mominul Islam
S/W Development Lead | Project Mgmt | DBA | Data Engineering
Microsoft-certified professional with 16+ years experience delivering 40+ enterprise solutions across diverse industries.

No comments:
Post a Comment
Thanks for your valuable comment...........
Md. Mominul Islam