formatting a tooltip

S

soum

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
 
B

Bob Powell [MVP]

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.
 
N

Nicholas Paldino [.NET/C# MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top