Actually (for clarity), he should use the "&" for string concatenation and +
for mathmatical addition. Yes, the "+" will work, but the "&" is more self
documenting and has become a VB standard over the years.
"Michael Giagnocavo [MVP]" <mg*******@Atrevido.net> wrote in message
news:ue*************@TK2MSFTNGP11.phx.gbl...
You need to use the + operator to add strings together:
MessageBox.Show("bla bla" + myTextBox.Text + " bla bla " + someotherString
+ " bla .")
-mike
MVP
"Emmie" <an*******@discussions.microsoft.com> wrote in message
news:02****************************@phx.gbl... hi,
i wanted to display the value of my textbox into my
msgbox. does anyone know the correct code for this?
i have tried.....
MessageBox.Show("You are about to insert the
product: "txtProductName.text" at a price
of "txtPrice.text" into the database. Do you wish to
continue?", "My Application(", MessageBoxButtons.YesNo,
MessageBoxIcon.Information)
this is not being accepted.
can anyone help?