Solved

Multi line ToolTipText in VB???

Posted on 2001-07-02
12
1,264 Views
Last Modified: 2008-03-10
I am trying to use the tooltiptext feature in vb but I need to insert a carriage return to make the text multi-line. When I use vbCr or char(13) it just prints a null character and there is no carriage return. Is there some sort of setting or some function I need to use???
0
Comment
Question by:sportdman
  • 3
  • 3
  • 2
  • +4
12 Comments
 

Accepted Solution

by:
elzohry earned 100 total points
Comment Utility
visit http://www.vbaccelerator.com to see their own tooltip method.

elzohry
0
 
LVL 27

Expert Comment

by:Ark
Comment Utility
Hi
Take a look at my dll on http://www.freevbcode.com/ShowCode.Asp?ID=1232

With this dll you can make not only multiline tips, but also customize the tooltip by setting its background and foreground colors, the delay time and visible time, whether or not the tooltip is centered, and whether or not it appears as a balloon.
You can also set tooltips not only on controls, but to "control's items" like listbox, listview, treeview or toolbar items.

Cheers

0
 
LVL 1

Expert Comment

by:mancio
Comment Utility
Try vbcr & vblf (or vbcrlf)
0
 
LVL 8

Expert Comment

by:glass_cookie
Comment Utility
Hi!

Do this (If it's label1):

Label1.ToolTipText = "This is a Test" & vbCrlf & "A very nice test..." & vbcrlf & vbcrlf & "Check it out"

That's it!

glass cookie : )

PS. Happy programming : )
0
 
LVL 8

Expert Comment

by:glass_cookie
Comment Utility
Oops!

Hi mancio, sorry - I missed your comment.

Just a note: If you're choosing between my or mancio's answer, please give it to mancio.

That's it!

glass cookie : )
0
 
LVL 27

Expert Comment

by:Ark
Comment Utility
VB itself doesn't allow multiline tooltips. Period
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

Expert Comment

by:Onkar
Comment Utility
Hi,

IF you are very much interested to give Multiline Tooltip, this can be achived by using multiline text box with same background color. This text be moved according to the mouse movement using the event "MouseMove"

Just a comment

Onkar
0
 
LVL 3

Expert Comment

by:nigelrowe
Comment Utility
Ark is correct, vb does not allow multi-line tooltip text.
0
 
LVL 7

Expert Comment

by:Inteqam
Comment Utility
check http://www.vbwire.com/brief.asp?3951

and vb does allow multiline tooltips.

0
 
LVL 7

Expert Comment

by:Inteqam
Comment Utility
0
 
LVL 27

Expert Comment

by:Ark
Comment Utility
Hi

>>http://www.vbwire.com/brief.asp?3951<<
>>http://jbsim.cs.pku.edu.cn/~lxh/codeguru/vb/articles/1944.shtml.htm<<

IMHO (repeat "IMHO!") my control is better plus source code and - $14.95

Cheers
0
 
LVL 7

Expert Comment

by:Inteqam
Comment Utility
>>http://jbsim.cs.pku.edu.cn/~lxh/codeguru/vb/articles/1944.shtml.htm<< is free, and it is functional, afterall it is the questioner choice.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now