?
Solved

Multi line ToolTipText in VB???

Posted on 2001-07-02
12
Medium Priority
?
1,289 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +4
12 Comments
 

Accepted Solution

by:
elzohry earned 400 total points
ID: 6246558
visit http://www.vbaccelerator.com to see their own tooltip method.

elzohry
0
 
LVL 28

Expert Comment

by:Ark
ID: 6246845
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
ID: 6247068
Try vbcr & vblf (or vbcrlf)
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 8

Expert Comment

by:glass_cookie
ID: 6247339
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
ID: 6247342
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 28

Expert Comment

by:Ark
ID: 6247358
VB itself doesn't allow multiline tooltips. Period
0
 

Expert Comment

by:Onkar
ID: 6247398
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
ID: 6247884
Ark is correct, vb does not allow multi-line tooltip text.
0
 
LVL 7

Expert Comment

by:Inteqam
ID: 6252460
check http://www.vbwire.com/brief.asp?3951

and vb does allow multiline tooltips.

0
 
LVL 7

Expert Comment

by:Inteqam
ID: 6252467
0
 
LVL 28

Expert Comment

by:Ark
ID: 6254233
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
ID: 6254526
>>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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month13 days, 23 hours left to enroll

801 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