How can I encode it so that when I press the enter key, it behaves as if a button was pressed in an existing form?
Say a button on a form makes a welcome message appear
private void buttonHello_Click(object sender, EventArgs e)
{
MessageBox.Show("Hello");
}
How to do this when the enter key is pressed, it does the same (for life, I don’t remember, and it is probably very simple, and I'm really dumb)
source
share