Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help displaying Tooltip in Listview.

Status
Not open for further replies.

elmorro

Programmer
Jun 23, 2005
133
0
0
US
I am using a Listview in my VB6 app. The third column of the Listview displays an employee id.
Is there a way to display the employee's name in the Tooltip when a user hovers over a cell in the employee id column?

Thanks in advance,
elmorro :)
 
The MouseMove event for the ListView returns the X-Y coords of the mouse. Use that info to calculate which cell you are in and set the ToolTipText as needed. The query that fills the listview will need to fetch the name when you fill the listview. I would put the name in a column with zero width

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top