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
You must concatenate those values into a single string. Try this, using
StringBuilder: