How do I code it so that when the enter key has been pressed it behaves as if a button on the existing form has been pressed?
Let's say the button on the form makes it so a display message of hello shows up
private void buttonHello_Click(object sender, EventArgs e)
{
MessageBox.Show("Hello");
}
How do I make it so when the enter key is pressed it does the same thing (for the life of me I can't remember and it's probably really simple and I'm being really dumb)