469,934 Members | 2,132 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,934 developers. It's quick & easy.

formatting a tooltip

Hello,
How do you format a tooltip (eg. make the text bold/italic/underline)?
Specifically, I want to format the tooltip that shows up when you
mouseover the column header in a DataGridView. I get a property called
'ToolTipText', but how do I format the text?
Thanks,
Soum

Nov 17 '05 #1
2 8488
This can only be accomplished with a third party control. See the XRay Tools
Bubble Tooltips.
--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"soum" <so******************@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Hello,
How do you format a tooltip (eg. make the text bold/italic/underline)?
Specifically, I want to format the tooltip that shows up when you
mouseover the column header in a DataGridView. I get a property called
'ToolTipText', but how do I format the text?
Thanks,
Soum

Nov 17 '05 #2
I wouldn't say it has to be a third party control. If you want to set
the icon and set the title (which is in bold), then you can access the tool
tip apis through the P/Invoke layer and set those properties.

However, if you want full control over it, then yes, you will have to do
that kind of processing yourself, either drawing the tooltip yourself, or
using a third party control.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
This can only be accomplished with a third party control. See the XRay
Tools Bubble Tooltips.
--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"soum" <so******************@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Hello,
How do you format a tooltip (eg. make the text bold/italic/underline)?
Specifically, I want to format the tooltip that shows up when you
mouseover the column header in a DataGridView. I get a property called
'ToolTipText', but how do I format the text?
Thanks,
Soum


Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Yves Royer | last post: by
reply views Thread by Yves Royer | last post: by
6 posts views Thread by ltt19 | last post: by
reply views Thread by EricL | last post: by
5 posts views Thread by =?Utf-8?B?cGV0ZTE5Njk=?= | last post: by
omerbutt
3 posts views Thread by omerbutt | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.