Tooltip
-
Hello, I have a rather large tooltip:
The debuglevel is an indicator of the amount of data that is written to the debugfile. The values should be used like this: 0 means no debug information, 1 means error only, 2 means error + informational, 3 means verbose (log as much as possible)
Now i want the tooltip to look like this:The debuglevel is an indicator of the amount of data that is written to the debugfile. The values should be used like this: 0 means no debug information 1 means error only 2 means error + informational 3 means verbose (log as much as possible)
So more structured. Is it possible? Thx in advance. -
Hello, I have a rather large tooltip:
The debuglevel is an indicator of the amount of data that is written to the debugfile. The values should be used like this: 0 means no debug information, 1 means error only, 2 means error + informational, 3 means verbose (log as much as possible)
Now i want the tooltip to look like this:The debuglevel is an indicator of the amount of data that is written to the debugfile. The values should be used like this: 0 means no debug information 1 means error only 2 means error + informational 3 means verbose (log as much as possible)
So more structured. Is it possible? Thx in advance.Will String.Format not do it? Barry
-
Hello, I have a rather large tooltip:
The debuglevel is an indicator of the amount of data that is written to the debugfile. The values should be used like this: 0 means no debug information, 1 means error only, 2 means error + informational, 3 means verbose (log as much as possible)
Now i want the tooltip to look like this:The debuglevel is an indicator of the amount of data that is written to the debugfile. The values should be used like this: 0 means no debug information 1 means error only 2 means error + informational 3 means verbose (log as much as possible)
So more structured. Is it possible? Thx in advance.Yes, just insert \n where you want a line break in your text. This is common in several controls, including the
Label
control. You can't use the PropertyGrid, though, since it or theTypeConverter
escapes the backslash (\ to \\). For example:toolTip1.SetToolTip(button1, "This is\na multi-line\atool tip.");
Microsoft MVP, Visual C# My Articles
-
Will String.Format not do it? Barry
String.Format
replaces indexed parameters with values in an argument list, not stylize text.Microsoft MVP, Visual C# My Articles
-
String.Format
replaces indexed parameters with values in an argument list, not stylize text.Microsoft MVP, Visual C# My Articles
Ok - sorry. For some reason I thought "\n" didn't work and had to be in a String.Format call. I can now take that of my code where I have multiple line labels!
-
Ok - sorry. For some reason I thought "\n" didn't work and had to be in a String.Format call. I can now take that of my code where I have multiple line labels!
No, it just doesn't work if you type \n in the PropertyGrid or something, since it gets escaped. You just have to assign the string "manually" (personally, I don't use the forms designers for much besides initial layout anyway since I deal a lot with localization and dynamic applications).
Microsoft MVP, Visual C# My Articles
-
No, it just doesn't work if you type \n in the PropertyGrid or something, since it gets escaped. You just have to assign the string "manually" (personally, I don't use the forms designers for much besides initial layout anyway since I deal a lot with localization and dynamic applications).
Microsoft MVP, Visual C# My Articles