We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

ListBox with Tooltip

Hi, Is there a way to implement a ListBox with a tooltip for each list item. Is this something that would be part of a future release. Thanks.

1 Reply

AD Administrator Syncfusion Team April 18, 2005 01:31 PM

Hi Gurbhej, The following code snippet shows how to implement per-item Tooltips for a ListBox, using ToolTipAdv and a MouseHover event handler: private void listBox1_MouseHover(object sender, System.EventArgs e) { try { this.toolTipAdv1.Text = this.listBox1.Items[this.listBox1.IndexFromPoint(this.listBox1.PointToClient(Control.MousePosition))].ToString(); this.toolTipAdv1.ShowPopup(new Point(Control.MousePosition.X - 4, Control.MousePosition.Y - toolTipAdv1.Size.Height + 4)); } catch { //The Mouse was pointing to blank space } } Hope this helps. Regards, Gregory Austin Syncfusion Inc.

Loader.
Live Chat Icon For mobile
Up arrow icon