Page 1 of 1

ToolTip and ListBox

Posted: 02 Feb 2005, 17:16
by virzak
Hey friend,

Do you have some code about tooltip and listbox?
Thanks

Victor

Posted: 02 Feb 2005, 21:30
by TiKu
Hi!

Some months ago I've written a listbox class that displays a tooltip for truncated items in VB.net. The VB6 version of the tooltip class used by it is available for download now. The VB.net version is a bit out of date. I'll upload it together with the listbox class as soon as I've updated it.

/edit: Damn, I just noticed that I no longer have the code. I've probably deleted it by accident. However, I remember how to do this, so I'll prepare a small VB6 sample.

TiKu

Posted: 03 Feb 2005, 17:59
by TiKu
Here's a VB6 sample that demonstrates how to display a tooltip for listbox items that are too wide for the listbox and therefore get truncated.

Hi TiKu...

Posted: 25 Feb 2008, 13:37
by SAL21
TiKu wrote:Hi!

Some months ago I've written a listbox class that displays a tooltip for truncated items in VB.net. The VB6 version of the tooltip class used by it is available for download now. The VB.net version is a bit out of date. I'll upload it together with the listbox class as soon as I've updated it.

/edit: Damn, I just noticed that I no longer have the code. I've probably deleted it by accident. However, I remember how to do this, so I'll prepare a small VB6 sample.

TiKu
Hi friend, sorry for my english i'm italian.
Is possible to use your code to have the same effect on item in combobox in a userform of Excel project?
Tks from Napoli.

Hi TiKu...

Posted: 25 Feb 2008, 13:38
by SAL21
TiKu wrote:Hi!

Some months ago I've written a listbox class that displays a tooltip for truncated items in VB.net. The VB6 version of the tooltip class used by it is available for download now. The VB.net version is a bit out of date. I'll upload it together with the listbox class as soon as I've updated it.

/edit: Damn, I just noticed that I no longer have the code. I've probably deleted it by accident. However, I remember how to do this, so I'll prepare a small VB6 sample.

TiKu
Hi friend, sorry for my english i'm italian.
Is possible to use your code to have the same effect on item in combobox in a userform of Excel project?
Tks from Napoli.

Posted: 26 Feb 2008, 23:30
by TiKu
Hi,

not out of the box. I got it some kind of working in VB.net long time ago. The tooltip was displayed at the bottom of the combo's drop-down list. It seems to be impossible to display the tooltip on top of the drop-down list.
I don't have the time to port this code to VB6 or even VBA (I don't use MS Office). I've attached the VB.net version.

Posted: 27 Feb 2008, 08:46
by SAL21
TiKu wrote:Hi,

not out of the box. I got it some kind of working in VB.net long time ago. The tooltip was displayed at the bottom of the combox's drop-down list. It seems to be impossible to display the tooltip on top of the drop-down list.
I don't have the time to port this code to VB6 or even VBA (I don't use MS Office). I've attached the VB.net version.
Tks, many tks.
Sal.