Advertisement
Gov_777

событие на клавишу

Jun 3rd, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.58 KB | None | 0 0
  1. //-------------------------------------------------------------------------------
  2. //событие на клавишу
  3.         protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
  4.         {
  5.             switch (keyData)
  6.             {
  7.                 case (Keys.Enter):
  8.                     {
  9.                         button5.PerformClick();
  10.                         return true;
  11.                     }
  12.             }
  13.             return base.ProcessCmdKey(ref msg, keyData);
  14.         }
  15. //-------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement