Thursday, 29 November 2012

C# Textbox Control

Use Of C# TextBox Control :

                        A text box is a Windows control used to get or display text to the user.

  Important Property Set Of Textbox Control From Property Window :

               Text : Represent String, That String Display With TextBox Control.

 

Code To Display MessageBox With Textbox Text When User Click On Button

 

private void button1_Click(object sender, EventArgs e)
{
       string s = textBox1.Text;
       MessageBox.Show("Message : " + s, "Message");
}


Output :


 

No comments:

Post a Comment