public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Response() { //String is a variable //All a variable does is store things, in this case a string(text) string Msg = "Hello World, look what I wrote. "; //A messagebox pops up a box //Msg is the variable that we created //textbox1.Text is whatever we write in the text box MessageBox.Show(Msg + textBox1.Text); } private void button1_Click(object sender, EventArgs e) { Response(); } private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { //If the key character is equal to enter if(e.KeyChar == (char)ConsoleKey.Enter) { //Go to Response Response(); } } }