For example: C#. Copy Code. this.KeyDown += (sender, eventArgs) => { if (eventArgs.KeyCode == Keys.Enter) DoSomething(); //... }
確定! 回上一頁