By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,815 Members | 1,142 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,815 IT Pros & Developers. It's quick & easy.

VbCr, VbCrLf, VbLf, VbNewLine etc Not Working

P: n/a
If I do something like:
txtAddress.Text = "test1" & vbCrLf & "test2

All I get is:
test1[][]test2

The [] represents a character that looks like a rectangle.

Why is this?

I have another project file I did as part of a tutorial and that works
fine, but my main prog doesn't. It's the same if I use Chr(10), Chr(13)
etc. I've also tried concatenating the text into a string variable and
displaying that in the text box but no effect.

Mar 23 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
guy
have you set the Multiline property of the text box?

"Burning_Ranger" wrote:
If I do something like:
txtAddress.Text = "test1" & vbCrLf & "test2

All I get is:
test1[][]test2

The [] represents a character that looks like a rectangle.

Why is this?

I have another project file I did as part of a tutorial and that works
fine, but my main prog doesn't. It's the same if I use Chr(10), Chr(13)
etc. I've also tried concatenating the text into a string variable and
displaying that in the text box but no effect.

Mar 23 '06 #2

P: n/a

Burning_Ranger wrote:
If I do something like:
txtAddress.Text = "test1" & vbCrLf & "test2

All I get is:
test1[][]test2

The [] represents a character that looks like a rectangle.

Why is this?


Your TextBox needs to have MultiLine = True in order to display more
than one line.

--
Larry Lard
Replies to group please

Mar 23 '06 #3

P: n/a
Gah! I completely forgot about that. Thanks.

Mar 23 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.