Hi, I am Developing C# winform Application. I need to use function keys to trigger button click event. for that I have written code as below.
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
if (keyData == (Keys.Control | Keys.F))
return base.ProcessCmdKey(ref msg, keyData);
My Problem is I do not want to write this code in every form, instead write a class file for this and call the same from the form.
Request help on
1. How to convert to class file.
2. How to call from the form.