ToolTip

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?
 
G

Guest

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.
 
T

Techno_Dex

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.
 
J

Jeff Gaines

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#?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top