It is possible to move this code into a class not a form class because it's very long and take a lot of space ? I want something like this : On KeyPress => Class.ProcessCmdKey(...); and i keep getting this error: 'function' : no suitable method found to override
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if(keyData == Keys.A)
{
}
if (keyData == Keys.B)
{
}
if (keyData == Keys.C)
{
}
if (keyData == Keys.D)
{
}
if (keyData == Keys.E)
{
}
if (keyData == Keys.F)
{
}
G..H......
return base.ProcessCmdKey(ref msg, keyData);
}