Tuesday, August 7, 2007

Creating multiline tooltips (Using Environment.NewLine in tooltips)









Just a small trick to separate lines in the standard tooltip (thanks, Heath!):

Code:
Label1.ToolTip = "Line 1" + Environment.NewLine + "Line 2" + Environment.NewLine + "Line 3";


Hope it helps.
http://www.ikosoftware.com/

1 comment:

ZAYAR said...

Nice Trick.

I test with firefox, it only show in one line.

How can I show multiline tooltips in firefox.