471,337 Members | 1,170 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Textbox help..

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.

Sep 5 '08 #1
1 992
"halfahue" <u46003@uwewrote in message news:89bfa964e36c3@uwe...
>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.";

Sep 5 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Jonas L | last post: by
4 posts views Thread by Jurjen de Groot | last post: by
2 posts views Thread by Alex Shirley | last post: by
8 posts views Thread by Filipe Marcelino | last post: by

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.