Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8343469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:04:26+00:00 2026-06-09T06:04:26+00:00

I am trying to display 3 values in a message box when the user

  • 0

I am trying to display 3 values in a message box when the user clicks Submit as a means to verify correct input.

The 3 values come from comboBoxes in the form: age, height, weight.

In my current set up, the box will only say “age:” with the actual numerical value in the top border.

How can I get the 3 comboBox data items to appear inside a message box with appropriate titles?

Like this:
Age: 27
Height: 62
weight: 180

Data are stored in the variables age_Num.Text, height_Num.Text, and weight_Num.Text

MessageBox.Show("Age:", age_Num.Text); //just shows "Age:". Value is in titlebar of mb
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T06:04:27+00:00Added an answer on June 9, 2026 at 6:04 am

    You must concatenate those values into a single string. Try this, using StringBuilder:

            StringBuilder MessageText = new StringBuilder();
            MessageText.AppendLine(string.Format("Age: {0}", age_Num.Text));
            MessageText.AppendLine(string.Format("Height: {0}", height_Num.Text));
            MessageText.AppendLine(string.Format("Weight: {0}", weight_Num.Text));
            MessageBox.Show(MessageText.ToString());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to display a message for each text box which the user didn't enter
I have been trying to display some values from the list in a input
I am trying to display all possible values for a sub-property. Below I am
I'm trying to display IEnumerable int values in JQGrid. As seen below column gmu
I am trying to display latitude and longitude values in a TextView , but
I'm trying to display a page in NSIS to obtain two different values. I
I'm trying to display the Baseline Start, Finish, Cost, and Work values for a
I'm trying to get the $url value to display from the MySQL database but
I'm trying to change the value of a dojo tree to display the correct
i am trying to get the value from my methods and display it in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.