Leaders dynamic_sysop Posted May 21, 2003 Leaders Posted May 21, 2003 hi does anyone know how to put a tooltip on a listview item? i've tried this... Dim tp As New ToolTip() With ListView1 .Items.Add(TextBox1.Text) tp.SetToolTip(ListView1, .Text) End With but it does nothing:-\ and there's no direct tooltip feature on the listview control by the look of it. cheers Quote
Leaders dynamic_sysop Posted May 21, 2003 Author Leaders Posted May 21, 2003 someone must know how to add a tooltip to an item in a listview:-\ in vb6 i'd just tell it to set the listview.listitems(i).tooltiptext but there's no mention of tooltips in .net Quote
Leaders dynamic_sysop Posted May 21, 2003 Author Leaders Posted May 21, 2003 it's ok i sussed it , my silly mistake:-\ Dim tp As New ToolTip() With ListView1 .Items.Add(TextBox1.Text) tp.SetToolTip(ListView1, TextBox1.Text) End With End Sub was using .Text before ( as in the listitem ) but obviously that was blank. Quote
*Experts* Nerseus Posted May 22, 2003 *Experts* Posted May 22, 2003 The Tooltip can also be added to a form like any other control. It will show up in the yellowy part below the form's designer. It's an Extender control so it adds properties to ALL controls on your form. If your ToolTip object is called toolTip1 (the default), your controls (in the designer) will have a new property called "ToolTip on toolTip1". You can also use the toolTip1 object in code, just as you are (toolTip1.SetToolTip(ListView1, TextBox1.Text). -Nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.