Windows Forms Textbox Entrée clé

J'ai une zone de texte, mais je ne trouve pas de source expliquant comment appeler une fonction lorsqu'un bouton est enfoncé.

public Simple()
{
    Text = "Server Command Line";
    Size = new Size(800, 400);

    CenterToScreen();

    Button button = new Button();
    TextBox txt = new TextBox ();

    txt.Location = new Point (20, Size.Height - 70);
    txt.Size = new Size (600, 30);
    txt.Parent = this;

    button.Text = "SEND";
    button.Size = new Size (50, 20);
    button.Location = new Point(620, Size.Height-70);
    button.Parent = this;
    button.Click += new EventHandler(Submit);
}

Certaines sources dites-moi d'utiliser une fonction, mais je ne comprends pas comment il va être appelé.

source d'informationauteur Statharas.903