About displaying multiline tooltips...

  • Thread starter Thread starter Amit Khatu
  • Start date Start date
Dim tt As New ToolTip
tt.SetToolTip(YourControl, "Text Line1" + ControlChars.CrLf + "Text Line2")
 
just add vbnewline in the string
ie:

tooltip1.settooltip(mycontrol,"first line" & vbnewline & "second line")
 
* Amit Khatu said:
How to display multiline tooltips for any control at run time ?

Just include a 'ControlChars.NewLine' or "\r\n" in your string.
 
VB:

tooltip.SetToolTip(Control, "Line1" & Chr(13) & "Line")

C#

tooltip.SetToolTip(Control, "Line1\nLine")
 
I would not add a newline using "\n" or for that matter even using "\r\n",
rather you can make use of the Environment.NewLine

--Saurabh
 
Back
Top