Saturday, June 1, 2013
0 comments

Adding ToolTip text on Combox box item in csharp

11:03 AM

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:

 
Toggle Footer