0
Add a textbox from the toolbox on to your form.
Add a button from the toolbox on to your form.
Double click the button.
A button_click event is created.
Put some code in the button_click event like.
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show(textBox1.Text);
}