Connecting Tech Pros Worldwide Forums | Help | Site Map

Textbox help..

halfahue
Guest
 
Posts: n/a
#1: Sep 5 '08
I am trying to assign the textbox input to a label output. for my C# class.
the thing is I can't get the name to pop up. in the messagelabel

messageLabel.Text =", How are you today."

textbox is just a name field. How do you go about displaying the name in the
messageLabel?
Sorry VERY new to programming in any relam.

Alberto Poblacion
Guest
 
Posts: n/a
#2: Sep 5 '08

re: Textbox help..


"halfahue" <u46003@uwewrote in message news:89bfa964e36c3@uwe...
Quote:
>I am trying to assign the textbox input to a label output. for my C# class.
the thing is I can't get the name to pop up. in the messagelabel
>
messageLabel.Text =", How are you today."
>
textbox is just a name field. How do you go about displaying the name in
the
messageLabel?
Sorry VERY new to programming in any relam.
You extract the text from the textbox in the same way as you use the Text
property of the label:

messageLabel.Text = textBox1.Text + ", How are you today.";

Closed Thread