I am using a tooltip control for a picturebox control. I would like to display the caption of the tooltip in newline. How to do this?
My picturebox name is help and tooltip name is ttp and I am displaying this tooltip on the mousehover event of the pictureimage. - Private Sub help_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles help.MouseHover
-
tt1.SetToolTip(help, "You can select one of the two setup dialog box.The Setup type dialog boxes views are represented below \r\n Based on the selection of this setup type, The installscript project displays corresponding setup type type during the installation of your application")
-
End Sub
I am using \r\n to insert a newline. But it doesn't work. Can you help me?
6 4245
I am using a tooltip control ...
Hi!
You can use vbNewLine command.
Your code can be changed as follows -
Private Sub help_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles help.MouseHover
-
tt1.SetToolTip(help, "You can select one of the two setup dialog box.The Setup type dialog boxes views are represented below" & vbNewLine & " Based on the selection of this setup type, The installscript project displays corresponding setup type type during the installation of your application")
-
End Sub
All the best.
With Regards
Vijay. R
You can also use chr(10) , chr(13) or combination of both for the purpose.
One more point, You can use
One thing to keep in mind. Based on other posts here, I believe that in VB6, ToolTipText cannot include line breaks. Um... as far as I can recall, they are simply ignored. It may be that this is still the case in your version.
Or they may have improved matters, of course - don't give up too easily. :)
Hi,
Yes Killer, VB.net has Improved, and ToolTip Control can have new Lines..
Add a ToolTip Control to your form, and ..
Me.ToolTipProviderCtl.SetToolTip(Me.Button1, "this is" _
& environment.NewLine & _
"a multiline" & environment.NewLine & "tooltip!")
REgards
Veena
Thanks for that, Veena.
It's good to know MS did fix some of the annoying bits. :)
Sign in to post your reply or Sign up for a free account.
Similar topics
by: akej via SQLMonster.com |
last post by:
Hi, i have table with 15 columns
CREATE TABLE . (
PRIMARY KEY ,
NULL ,
NULL ,
NULL ,
NULL ,
(50) NULL ,
NULL
|
by: Vamsi |
last post by:
Hi,
I am trying a basic opearation of splitting a multiline value to an
array of single lines(Actually making Address into AddressLine1,
AddressLine2).
I used Environment.NewLine in split, I...
|
by: deko |
last post by:
In VB, I would do this for a new line:
str = "text here" & VbCrLf & "more text"
For other characters, I would use the ascii code:
For example, Chr(34) is a double quote (").
how do I do...
|
by: Peter Kirk |
last post by:
Hi
I would like to ask a little bit about the value Environment.Newline: what
is it and what is the point of it? Ok, I can see in the docs that it
represents "newline" for the current platform -...
|
by: anachronic_individual |
last post by:
Hi all,
Is there a standard library function to insert an array of characters
at a particular point in a text stream without overwriting the existing
content, such that the following data in...
|
by: junky_fellow |
last post by:
Is there any efficcient way of removing the newline character from the
buffer read by
fgets() ?
Is there any library function that is similar to fgets() but also tells
how many
bytes it read...
|
by: rossum |
last post by:
I want to declare a const multi-line string inside a method, and I am
having some problems using Environment.NewLine.
I started out with:
class foo {
public void PrintStuff() {
const...
|
by: Francesco Pietra |
last post by:
How to insert letter "A" on each line (of a very long list of lines)
at position 22, i.e., one space after "LEU", leaving all other
characters at the same position as in the original example:
...
|
by: alex21 |
last post by:
I am trying to write a function for determining the data type of columns in a delimited file.
However my function is not detecting a newline and exiting the loop after the end of the first line.
...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
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...
| |