Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiline tooltipText

Tags:

c#

winforms

I am trying to have a tooltip on multiple lines. how do i do this?

like image 865
leora Avatar asked Dec 07 '08 01:12

leora


3 Answers

Put a newline (use Environment.NewLine) into the actual tooltip text.

like image 120
JaredPar Avatar answered Oct 10 '22 23:10

JaredPar


You can enter a newline in the designer also (for static-text only, obviously) by clicking the dropdown arrow near the tooltip property-box, and hitting enter where you want the newline.

like image 34
BlueRaja - Danny Pflughoeft Avatar answered Oct 10 '22 23:10

BlueRaja - Danny Pflughoeft


Just for reference, in C++, one can simply add the "\n" tag directly in static text.

like image 1
Aaron B. Avatar answered Oct 10 '22 23:10

Aaron B.