473,394 Members | 1,750 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

begginer question...msgbox

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?
Jul 21 '05 #1
2 1214
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?

Jul 21 '05 #2
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?


Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Player | last post by:
During my setup install of python, I came across an option stating... Compile python files to, .pyc I left it unchecked for now, should I of done otherwise?? As I am a begginer to this, I...
7
by: calan | last post by:
I need a dialog box with Yes, No, and Cancel buttons that pops up when a link is clicked. I'm using asp on the server side, and basically, if the user clicks yes, I want to go to a certain page...
1
by: DD | last post by:
I have the following code and my question is Do i use a Autoexec to fire this ? As: fGetLinkedTables("ODBC") Or how do i ?? do i replace the above as fGetLinkedTables("test_be") Or ???
4
by: Emmie | last post by:
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:...
2
by: thecamisland | last post by:
Hello, I'm a begginer. Is this going to work? Dim fm As FirstMenu Class TransHeadInfo Public Function Validate() As Boolean ... fm.Show() ...
4
by: fermineutron | last post by:
I googled for it but found 0 results "|=" my question is: what does |= do? | is a bitwise or = is equal but what |= do? I am using C not C++ if it makes any difference.
1
by: =?Utf-8?B?QW5kcmV3?= | last post by:
Email Question: When I send an email (basically a sms to a phone) from ms outlook it works fine. When I try to send it pragmatically I get an error stating that it can’t relay for <the email...
13
by: deshix | last post by:
Hi everyone, can you recommend me the best way to learn the PHP? I'm really begginer...
5
JodiPhillips
by: JodiPhillips | last post by:
Hello again, Its been a while since I've asked a question, I've been learning steadily reading the How To's and the questions in this forum, as well as reading my Access VBA and Access bibles till...
0
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.