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;
}
0 comments:
Post a Comment