Multiline ToolTipText

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
 
B

Boni

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
 
H

Herfried K. Wagner [MVP]

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

Pieter

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
 
P

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!
 
P

Pieter

Hehe too stupid: I implemented it, to discover now that the ToolTip in
VS.NET 2005 has a IsBalloon-property :)
 
C

Cor Ligthert [MVP]

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
 

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