473,799 Members | 2,665 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

display "\t" in tooltip in .Net framework

BC
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
Nov 16 '05 #1
3 1813
Jay
try this
toolTip1.SetToo lTip(this.btnBi nd, string.Format(" {0} \t {1}", var1,var 2));

Jay

"BC" <bc*****@yahoo. com> wrote in message
news:9b******** *************** ***@posting.goo gle.com...
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

Nov 16 '05 #2
B C

That was how I coded. I think there is bug in tooltip class in .Net
Framework. The "\r\n" works fine in the tooltip text. But "\t" won't
work. Any text after the "\t" won't be shown in the Tooltip text. But
if I did:

toolTip1.SetToo lTip(this.btnBi nd, string.Format(" {0} \t {1}", var1,var
2));
string str = toolTip1.GetToo lTip(this.btnBi nd);

the str had correct text set in the SetToolTip text.

The interesting thing is the same string with "\t" showed in the
MessageBox correctly.

BC

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3
Hello BC,

Did you have any luck in finding a way to get tabs to work in tooltips?
It would also be nice to add my own formatting like bold and setting
the backcolor to white (not yellow).
pretty limiting the way it is now...

-dave

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1819
by: SHYAM SUNDAR E G | last post by:
hi, I want to display tooltip when Hovered on the Combo Box. like, once if we click on the combo, displays all items in the Combo, when i move the mouse on each item, it has to display the tooltip with that Itemname. Reason: some times item names will be larger then combo box width. i want to display them as Tooltips. will u please suggest with solution. waiting for reply
5
9461
by: Vinny Vin | last post by:
I would like to display a ToolTip (WinForms) when the Control associated recieves focus (when the control.enter event is triggered) as oppose to having the ToolTip displayed when the mouse hovers over the control,How can this be accomplished(Im developing in C#)?
5
9827
by: Sue | last post by:
Help! I have an asp table with an embedded table. The asp tablerow that contains this table has a static ID assigned of "FilterRow2" (see snippets of code below). When I click on the button to set the tablerow style property to "None", the row (And embedded table) briefly disappear, but then bounce right back into sight. Any ideas on why it's doing this and how to make the style.display = "None" stick?
1
2661
by: Nathan Sokalski | last post by:
When testing a form of mine which uses RequiredFieldValidators that have the Display property set to "Dynamic" the ErrorMessage property is automatically removed when an entry is completely typed and the user leaves the textbox. However, if the entry is selected from the list of previously typed entries, the error does not disappear until the page is validated using the Page.Validate() method. I find this very weird (not to mention it may...
4
3271
by: Jono | last post by:
Hi Everyone, As it says in the title, I'm looking for a way to display a page while long running operations are performed on the server. Ideally, I'd like some way to push the current request onto some stack, where it would continue to be processed asynchronously (most importantly preserving things like view state, form post data, etc). In the interim, while the main request is processed, a friendly page will be displayed to the user....
1
2293
by: Benny Ng | last post by:
Dear All, Now I met one problem in the development of my one application. I have one ASP.NET page. It's for disply the information of customer. But now I have one new requirement. It's to combine the "Edit" and "Display" funtions into this page. (It means if user want to edit the customer information, this page would provided editing page to the user; If the user want to display the customer information, this page would providev the...
0
2613
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Via an ASPX (and code behind) in .net 2.0 I want to be able to "page" though and display the contents of an xml file. So if there are 100 elements, I can display "page 1 of 4" and list 25 elements per page. How can I do this? Below is the code used to display the XML file // Create XmlDocument and load the XML from file string FilterValue = "Autos";
2
10566
by: DKn | last post by:
in C#.Net windows application . how to display a tooltip for a label dynamically. Plz any one help me..
2
5717
by: reetamca | last post by:
Hi All, I need to add the tooltip option to the combo box in html and javascript. When i place the mouse over the options the full text in that option should be displayed. Please help me in this.
0
9689
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9550
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10495
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10269
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10032
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4148
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2942
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.