2
Answers

About Keyboard events in User Controls

Mayur Gujrathi

Mayur Gujrathi

14y
2.3k
1
Dear Friends
I want to execute keyboard events in c# but in user controls. Iam calling user controls on forms
		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#

Answers (2)