HighTechTalks DotNet Forums  

display "\t" in tooltip in .Net framework

Dotnet Academic General Discussions microsoft.public.dotnet.academic


Discuss display "\t" in tooltip in .Net framework in the Dotnet Academic General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default display "\t" in tooltip in .Net framework - 11-21-2004 , 09:16 PM






Hi
I am trying to display the formated text, a table like, in the tooptip in C#.
Something like this:
Apple 4
lime 100

I put "\t" after the "Apple".
Somehow the tab "\t" won't show in the tooltip.
When the tooltip shown, it displayed "Apple" only in the tooltip.

But I tried to display the exact text in a MessageBox, it works fine.

Anyone knows how to show the "\t" in the tooptip?

Thanks
BC

Reply With Quote
  #2  
Old   
Jay
 
Posts: n/a

Default Re: display "\t" in tooltip in .Net framework - 11-21-2004 , 10:09 PM






try this
toolTip1.SetToolTip(this.btnBind, string.Format("{0} \t {1}", var1,var 2));



Jay

"BC" <bcho_pa (AT) yahoo (DOT) com> wrote

Quote:
Hi
I am trying to display the formated text, a table like, in the tooptip in
C#.
Something like this:
Apple 4
lime 100

I put "\t" after the "Apple".
Somehow the tab "\t" won't show in the tooltip.
When the tooltip shown, it displayed "Apple" only in the tooltip.

But I tried to display the exact text in a MessageBox, it works fine.

Anyone knows how to show the "\t" in the tooptip?

Thanks
BC



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.