Yaircc.CommandDialog.CommandTextBox_KeyDown C# (CSharp) Method

CommandTextBox_KeyDown() private method

Handles the KeyDown event of System.Windows.Forms.TextBox.
private CommandTextBox_KeyDown ( object sender, KeyEventArgs e ) : void
sender object The source of the event.
e KeyEventArgs The event arguments.
return void
        private void CommandTextBox_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                this.OKButton_Click(sender, EventArgs.Empty);
            }
        }