ToolTip

  • Thread starter Thread starter Techno_Dex
  • Start date Start date
T

Techno_Dex

Does anyone know how to generate a multi line ToolTip using the ToolTip
class? I have tried using the newline (\n using C#) in the text but that
displays the \n in the text when the tooltip displays. I've looked at the
OwnerDrawn option, but it appears most of the params are read only instead
of being set. I'm hoping not to have to go down to the WinAPI level with
the IWin32Window Handle... Any suggestions?
 
Does anyone know how to generate a multi line ToolTip using the ToolTip
class? I have tried using the newline (\n using C#) in the text but that
displays the \n in the text when the tooltip displays. I've looked at the
OwnerDrawn option, but it appears most of the params are read only instead
of being set. I'm hoping not to have to go down to the WinAPI level with
the IWin32Window Handle... Any suggestions?

I use line feed (vb constant vblf) without any problems. I call SetToolTip
with a string like "line1" & vblf & "line2". No problems, no winapi's.
 
Mental Laps on my part.... I added to String in the Properties window, which
automatically escaped the backslash for me, then I tried coding the text
directly in the constructor, but I escaped the whole string with a
@"<string>"..... Never mind me.
 
I use line feed (vb constant vblf) without any problems. I call SetToolTip
with a string like "line1" & vblf & "line2". No problems, no winapi's.

Or how about Environment.Newline in C#?
 
Back
Top