Sunday, September 28, 2008

Multiline in tootip

you the below codes to add multiline tooltip for a button :

btnConvert.ToolTip = String.Format("This{0}is{0}a{0}multiline{0}tooltip", Environment.NewLine);

btnConvert.ToolTip = String.Format("YTD Excellence {0}\nYTD Overall {1}\nFeb Excellence {2}\nFeb Overall {3}",
"1",
"2",
"3",
"4"
);