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!
Printable View
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!
Quote:
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!
Code:public void SetupToolTips() {
Tooltip t = new ToolTip(this.components);
t.SetToolTip(mylistview,"My list view");
}
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 forQuote:
Originally posted by dky1e
Thanks!
But how can I attach the tooltip to each of the items?
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.Quote:
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.
http://msdn.microsoft.com/library/de...classtopic.asp