width of tooltip rectangle

  • Thread starter Thread starter Wiktor Zychla
  • Start date Start date
W

Wiktor Zychla

is there any way to customize the width of tooltip rectangle?

right now it tries to fit the screen width and it looks rather ugly when
processing a long string.

can I somehow inherit the ToolTip class and set the fixed rectangle width?
can I then override the ToolTip's OnPaint method?

thanks in advance

Wiktor
 
Hello,
The standard tooltip is a sealed class and cannot be overridden.

If you're interested in a commercial solution I sell a tooltip control that
is far mor flexible than the standard one.

http://www.bobpowell.net/bubbletooltip.htm

--
Bob Powell [MVP]
C#, System.Drawing

The October edition of Well Formed is now available.
Find out how to use DirectX in a Windows Forms control
http://www.bobpowell.net/currentissue.htm

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

Blog http://bobpowelldotnet.blogspot.com
 
Back
Top