ScreenToGif.Modern.con_tbDelay_KeyDown C# (CSharp) Method

con_tbDelay_KeyDown() private method

Called when the user hits the key "Enter" while focused in the con_tbDelay text box. It closes the context menu.
private con_tbDelay_KeyDown ( object sender, KeyEventArgs e ) : void
sender object
e KeyEventArgs
return void
        private void con_tbDelay_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyValue == (char)Keys.Enter)
            {
                contextDelay.Close(ToolStripDropDownCloseReason.Keyboard);
                e.SuppressKeyPress = true;
            }
        }
Modern