Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multi-line ToolTipText ???

Status
Not open for further replies.

NeilFrank

Programmer
Mar 12, 2000
167
CA
Is it possible to have >1 line for a Control's ToolTipText?

The following doesn't work:

Control.ToolTipText = "Line 1" & vbNewLine & "Line 2"

 
Try:

Control.ToolTipText = "Line 1" & vbCrLf & "Line 2"

John Borges
 
In a Windows operating environment vbCrLf is the same as vbNewline - both return ASCII characters 13 and then 10. ToolTip text is intended for a very brief hint, so it doesn't (ordinarily) support multiline.

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'

for steam enthusiasts
 
NeilFrank,

If you've looked at the solutions given by grommit and stongm you'll see they amount to quite a bit of code. I would be tempted to fake it using a label control in conjunction with another gem from stongm in thread222-416091.

regards Hugh

 
I appreciate your various suggestions and plan to check them out. This Forum rules!!!

Frank
 
Is the amount ToolTipText short enough to appear in a status bar panel? Personally if I'm curious about a control in a program and there is no ToolTipText pop-up I look for the info in a status bar. It has become second nature for me, and I suspect for many other Windows users as well.

Just a thought, and I agree with you about this forum. Knowlegable users who are willing to post solutions like STRONGM and the other MVPs are a blessing!

Jim Schuuz
{ F1 = my.friend
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top