Solved

How Do You Display Messages on Mutliple Lines on a Visual Basic Control?

Posted on 2013-12-12
4
275 Views
Last Modified: 2013-12-16
I have a validation message that I am trying to display in a Visual Basic label.  The message has multiple lines.

Code:
"test1" & Environment.NewLine & "test2" & vbCrLf & "test3"

When I try to display the message all of the text is on 1 line instead of 2.

How do I display multi-lines?

Thanks,

Dan
0
Comment
Question by:danielolorenz
[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
4 Comments
 
LVL 19

Assisted Solution

by:Rikin Shah
Rikin Shah earned 166 total points
ID: 39714153
Hi,

Try below code-
"test1" & "<br />" & "test2" & "<br />" & "test3"
0
 

Author Comment

by:danielolorenz
ID: 39714162
It worked.

Thanks
0
 
LVL 44

Assisted Solution

by:AndyAinscow
AndyAinscow earned 167 total points
ID: 39714164
Designer
and
Code with result
0
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 167 total points
ID: 39714404
It's not apparent in AndyAinscow's screenshot, but make sure you set the AutoSize property of the Label to False in order to be able to resize it.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

752 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