Hello - I am wondering what the command is for breaking quoted text over
multiple lines for formatting in my code. An example is
MessageBox.Show("You Fool! The number of registrants cannot be 0. Please
re-enter the number of registrants.", _
"Input Error", MessageBoxButtons.OK, MessageBoxIcon.Asterisk)
I would like to break the text box so it can all be viewed on the coding
screen or when the text is too much - description labels and such, as
bellow, of course, below doesn't work:
MessageBox.Show("You Fool! The number of registrants cannot be 0. _
Please re-enter the number of registrants.", "Input Error",
MessageBoxButtons.OK, _
MessageBoxIcon.Asterisk)
I really can't find an answer on how to do this. Any help would be
appreciated, and thanks! 2 14827
You may append the VB.NET new line constant like this:
MessageBox.Show("First Line" & vbCrLf & "SecondLine")
Or you can append the .NET new line constant like this:
MessageBox.Show("FirstLine" & Environment.NewLine & "SecondLine")
--
Mike
Mike McIntyre
Visual Basic MVP www.getdotnetcode.com
"Patrick" <pa*****@hello.com> wrote in message
news:Oc**************@TK2MSFTNGP12.phx.gbl... Hello - I am wondering what the command is for breaking quoted text over multiple lines for formatting in my code. An example is
MessageBox.Show("You Fool! The number of registrants cannot be 0. Please re-enter the number of registrants.", _ "Input Error", MessageBoxButtons.OK, MessageBoxIcon.Asterisk)
I would like to break the text box so it can all be viewed on the coding screen or when the text is too much - description labels and such, as bellow, of course, below doesn't work:
MessageBox.Show("You Fool! The number of registrants cannot be 0. _ Please re-enter the number of registrants.", "Input Error", MessageBoxButtons.OK, _ MessageBoxIcon.Asterisk)
I really can't find an answer on how to do this. Any help would be appreciated, and thanks!
"Patrick" <pa*****@hello.com> schrieb: Hello - I am wondering what the command is for breaking quoted text over multiple lines for formatting in my code. An example is
MessageBox.Show("You Fool! The number of registrants cannot be 0. Please re-enter the number of registrants.", _ "Input Error", MessageBoxButtons.OK, MessageBoxIcon.Asterisk)
I would like to break the text box so it can all be viewed on the coding screen or when the text is too much - description labels and such, as bellow, of course, below doesn't work:
MessageBox.Show("You Fool! The number of registrants cannot be 0. _ Please re-enter the number of registrants.", "Input Error",
\\\
.... be 0." & _
"Please...
///
.... or, if you want a new line in the message box:
\\\
.... be 0." & ControlChars.NewLine & _
"Please...
///
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Michael Satterwhite |
last post by:
I have a survey form that I want mailed to the client. I've built the
message body as plain text and tested it by writing it to a file and
examining the file. It's being built correctly.
When I...
|
by: Dominik Kaspar |
last post by:
i want to initialize a constant list at the beginning of a python
program. but the list is too big for one line. is there any
possibility to spread the list over several lines, so that the code...
|
by: Frans Englich |
last post by:
Hello,
I take PyChecker partly as an recommender of good coding practice, but I
cannot make sense of some of the messages. For example:
runner.py:878: Function (main) has too many lines (201)...
|
by: May |
last post by:
Hi,
My question is: How to concat values from several lines (the same
column) to only one value. For example:
We have table SGMENT with one column: NAME (varchar2(50)). We would
like to have...
|
by: casul |
last post by:
Hi All,
I was told there were a few macro gurus on this group :)
I'm trying to define a macro that will allow me to write the following
code :
#include MY_MACRO( NAME, SPACE )
|
by: Shokoth |
last post by:
I also wanted to know how to spread out sql statement over 3 lines.
I am writing an sql update statment in VB.
I have about 12 fields to update.
strSQL = "UPDATE " & _
"Set . =...
|
by: Pirmin |
last post by:
How can I find the matches for bookings that meet the following conditions.
A booking always starts with a date.
A booking can consist of several lines.
Dates can be part of the booking text.
...
|
by: TP |
last post by:
Hi everybody,
When using raw_input(), the input of the user ends when he types Return on
his keyboard.
How can I change this behavior, so that another action is needed to stop the
input? For...
|
by: arungkumar |
last post by:
Can a string literal extend over several lines? why or why not?
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |