473,796 Members | 2,558 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

tooltip - multiline not working

Hi,

I have tried these methods but I never get a new line to show on check
box tool tip?

Any idea how to fix this? Thanks.

string strFin = string.Empty;
string str = "a b c d e f g";
string[] strArray = str.Split(' ');
for (int i = 0; i < strArray.Length ; i++)
{
//strFin = strFin + "\r\n" + strArray[i];
strFin = strFin + Environment.New Line + strArray[i];
}
checkBox1.ToolT ip = strFin;
Oct 22 '08 #1
2 3586
What OS? Windows 2000 has a problem with multiline tooltips.

Mike.

"Slickuser" <sl*********@gm ail.comwrote in message
news:74******** *************** ***********@31g 2000prz.googleg roups.com...
Hi,

I have tried these methods but I never get a new line to show on check
box tool tip?

Any idea how to fix this? Thanks.

string strFin = string.Empty;
string str = "a b c d e f g";
string[] strArray = str.Split(' ');
for (int i = 0; i < strArray.Length ; i++)
{
//strFin = strFin + "\r\n" + strArray[i];
strFin = strFin + Environment.New Line + strArray[i];
}
checkBox1.ToolT ip = strFin;


Oct 23 '08 #2
On Oct 22, 5:33*pm, "Michael D. Ober" <obermd.@.alum. mit.edu.nospam. >
wrote:
What OS? *Windows 2000 has a problem with multiline tooltips.
Windows XP-Pro.

These don't work either.
strFin = str.Replace(" ", Environment.New Line);
strFin = str.Replace(" ", "\r\n");

Oct 23 '08 #3

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

Similar topics

2
2418
by: Christopher Weaver | last post by:
I've succeeded in creating multi-line ToolTips in code: ttAllToolTips.SetToolTip(this.btnNextTaskSet , "Retrieve the next\n" + Convert.ToString(TaskRecords) + " task records."); But I'm wondering if this can be done through the properties window. Anyone know how?
4
3327
by: Saber S | last post by:
How can I make a multi line tooltip when I point to a button?
6
403
by: ltt19 | last post by:
HI everyone, So, I have many buttons, and all of them must show a tooltip with the same string, except one word, that I must read this owrd from a variable. Although, the "ToolTip on x" property do not let me to write a little paramter of concanatantion (at least I was not able to do this). Does someone has any ideas? Any help will be very useful. Thanks in advance.
1
1802
by: Radu | last post by:
Hi. 1. OnLoad I populate a <select... html control with the doc files in some folder. 2. The user selects one of the files in the combo, and 3. In an IFRAME I show a preview of the selected word document. All those word docs also have lots of custom properties I would like to
9
24268
by: Alex | last post by:
Hi all - Read here that embedding \n's into the tooltip string during runtime should yeild multiline tooltips. However, mine is just keeping the \n's in there and showing it all on one line. Any idea how I get it to parse the control chars? I'm doing something like this:
1
1050
by: kiran01 | last post by:
Hi, Can anyone help, I want that data in datagrid should be placed in single line. Can i somehow set multiline property of datagrid to false, and i also do not want d width of COLOUMN to increase if multiline property is set false ,instead can i hve a
2
7795
by: kirk | last post by:
I am trying to make a crafty tooltip, like the ones that popup when you hover over the tray icons for Windows Vista, such as the "battery meter", "network connectivity", "speaker volume" ...I am really unhappy that NotifyIcon cannot be used with ToolTip.SetToolTip(). -- example -- myToolTip.SetToolTip(this.myNotifyIcon, "some tooltip text"); private void myToolTip_Draw(arg,arg) {
1
2055
by: =?Utf-8?B?RnJlZEM=?= | last post by:
My application uses the tooltip to display "realtime" data. When a user hovers over a control, information like temperatures and pressures are displayed in the tooltip. Using tootip.SetToolTip(controlName,text) the controls tooltip is updated every second. There are 50+ of these controls on a form. I have used perfmon and graphed the working set of my application to track this problem to the tooltip method. With tooltip.SetToolTip...
0
1596
Pakmarshal
by: Pakmarshal | last post by:
Hello Everyone, While working with list view control in VB 2005, I observed a behavior that the tooltip for the control is not consistent i.e. if we closely observe that when the tooltip displays then one can find that some time when you move the cursor in the control, tooltip won’t be displayed. For further investigation I tried to observe the behavior of other such controls e.g. Treeview, listbox and textbox (Multiline). I have observed the...
0
9528
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
10456
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
10230
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
9052
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6788
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();...
0
5575
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4118
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
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2926
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.