Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
line Break in tooltip
posted

Hello,

is it possible to get a line break in a tooltip?

thanks

Michael

Parents
No Data
Reply
  • 95
    posted

    Hi Micheal

     

    Try something like this

     

    e.ToolTipText = "Title: " + strProgramName + "\n" +

    "Type: " + strProgramType + "\n" +

    "Group: " + intGroup.ToString() + "\n" +

    "Episode: " + strEpisodeName + "\n" +

    "Duration:\n" + tsDuration.Hours + " Hour(s)\n" + tsDuration.Minutes + " Minutes(s) ";

    You can also use Environmwnt.NewLine instead of the escape character '\n' in the string

Children