Multiline ToolTipText

  • Thread starter Thread starter Pieter
  • Start date Start date
P

Pieter

Hi,

I want to set the ToolTipText of a ToolStripButton (VB.NET 2005) on the
MouseEnter-event. It works fine, unless I want to have a MultiLine
toolTipText (with vbCrlf in it).

Is there a way to use a MultiLine ToolTipText or is this (still) not
possible?

Thanks a lot in advance,

Pieter
 
There is a way, but at least in 2003 you have to use windows API. Look at
google for "Multiline tooltip .NET". Also on codeproject there is much stuff
about it.
HIH
 
Boni said:
There is a way, but at least in 2003 you have to use windows API. Look at
google for "Multiline tooltip .NET". Also on codeproject there is much
stuff about it.

In .NET 1.1 including 'ControlChars.NewLine' is sufficient for displaying
multiline tooltips.
 
Thanks! That works fine!

The only problem I have now is: The tooltip is too heigh sometimes, so it
starts to flicker :-/ I'll guess I'd better keep everything on one line,
unless you know a solution for this problem?

Thanks anyways,

Pieter
 
Well, it seemd a good solution for my problem! :-) It didn't work initially
with ToolStripButtons, but jsut adding a little bit of code did the trick
:-)

Thanks Cor!
 
Hehe too stupid: I implemented it, to discover now that the ToolTip in
VS.NET 2005 has a IsBalloon-property :-)
 
Pieter,
Hehe too stupid: I implemented it, to discover now that the ToolTip in
VS.NET 2005 has a IsBalloon-property :-)
Yes you are not alone, I knew that.

Voordat je denkt dat ik denk dat alleen Belgen gek zijn.

I don't translate this because people outside the Belgie/Netherlands area
don't understand the background of this.

:-)

Cor
 
Back
Top