Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / July 2006

Tip: Looking for answers? Try searching our database.

ToolTip

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Techno_Dex - 21 Jul 2006 20:30 GMT
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?
AMercer - 21 Jul 2006 20:46 GMT
> 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.
Techno_Dex - 21 Jul 2006 21:18 GMT
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.

>> 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
[quoted text clipped - 8 lines]
> SetToolTip
> with a string like "line1" & vblf & "line2".  No problems, no winapi's.
Jeff Gaines - 21 Jul 2006 21:19 GMT
>>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
[quoted text clipped - 5 lines]
>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#?

Signature

Jeff Gaines


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.