Solved

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

Posted on 2013-12-12
4
257 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
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 74

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now