I want to execute keyboard events in c# but in user controls. Iam calling user controls on forms
C#
if (e.Modifiers == Keys.Control) {
switch (e.KeyCode) {
case Keys.S:
MessageBox.Show("success");
break;
}
}
It is executing in c# forms but not in user controls of c#
Jean PaulRank #32 · 38.5K reputationPosted Dec 29, 2010, 3:14 AM EST
Sam HobbsRank #107 · 20.5K reputationPosted Dec 29, 2010, 8:37 AM EST