add a tooltip message to listview

Hi, I want to add a tooltip message to my buttons and list view items. Is there a built in funtion that can make it easy for me?
Please point me in the right direction :)
Thanks!
[197 byte] By [dky1e] at [2007-11-17 17:04:41]
# 1 Re: add a tooltip message to listview
Originally posted by dky1e
Hi, I want to add a tooltip message to my buttons and list view items. Is there a built in funtion that can make it easy for me?

Please point me in the right direction :)

Thanks!

public void SetupToolTips() {
Tooltip t = new ToolTip(this.components);

t.SetToolTip(mylistview,"My list view");
}
jparsons at 2007-11-9 1:28:44 >
# 2 Re: add a tooltip message to listview
Thanks!

But how can I attach the tooltip to each of the items?
dky1e at 2007-11-9 1:29:40 >
# 3 Re: add a tooltip message to listview
Originally posted by dky1e
Thanks!

But how can I attach the tooltip to each of the items?

Keep calling SetToolTip() for each item you want to set a tooltip for
jparsons at 2007-11-9 1:30:49 >
# 4 Re: add a tooltip message to listview
I'm sorry, I don't understand. I tried doing setTooltip( listviewitem,"adf"); but it doesnt allow me to do that.

Could you post a quick sample? Thanks.
dky1e at 2007-11-9 1:31:42 >
# 5 Re: add a tooltip message to listview
Originally posted by dky1e
I'm sorry, I don't understand. I tried doing setTooltip( listviewitem,"adf"); but it doesnt allow me to do that.

Could you post a quick sample? Thanks.

Check out htis Article on MSDN. it's the best source that I know of.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformstooltipclasstopic.asp
jparsons at 2007-11-9 1:32:52 >