IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Embedding NL in text in VB
Is it possible?
I want a multi-line tooltip box to show up but the instructions for putting NL into text show how to do it programmatically, which means I can't use the properties box to set it.
New Never mind
I'll build the tooltip text on form load.
New What's NL
If it's NewLine then just use the vbCRLF constant.
New Yes but
In order to use a constant to have to string thing together such as:

"This is line 1" & ControlChars.CrLf & _
"This is line 2"

Which is how I did it. I used the ToolTip1.SetToolTip(control, tip)
in the Form_Load event. This works but seems the wrong place to do it.

But you can't specify quotes strings and constants this
way when placing text in the ToolTip Properties entry.

In C or Perl I would say: "This is line 1\\nThis is line 2"

Does VB have the ability to embed these types of characters
directly in strings?
New Re: Yes but
You might want to use Environment.NewLine instead, just in case you want to port to Mono later or something.
--
Chris Altmann
New Yes
Just remember that you have to do a carriage return and then a linefeed. 2 characters.

Incidental note. I first figured out how to do it in VB based on some Perl documentation that I was reading. That was the point where I realized that learning Perl was helping my VB.

Cheers,
Ben
To deny the indirect purchaser, who in this case is the ultimate purchaser, the right to seek relief from unlawful conduct, would essentially remove the word consumer from the Consumer Protection Act
- [link|http://www.techworld.com/opsys/news/index.cfm?NewsID=1246&Page=1&pagePos=20|Nebraska Supreme Court]
     Embedding NL in text in VB - (broomberg) - (5)
         Never mind - (broomberg)
         What's NL - (ChrisR) - (2)
             Yes but - (broomberg) - (1)
                 Re: Yes but - (altmann)
         Yes - (ben_tilly)

No LRPD for you, one year!
91 ms