Md Mominul Islam | Software and Data Enginnering | SQL Server, .NET, Power BI, Azure Blog

while(!(succeed=try()));

LinkedIn Portfolio Banner

Latest

Home Top Ad

Responsive Ads Here

Post Top Ad

Responsive Ads Here

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;
            }

No comments:

Post a Comment

Thanks for your valuable comment...........
Md. Mominul Islam

Post Bottom Ad

Responsive Ads Here