protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if (keyData == Keys.F2)
{
this.OnKeyPress(new KeyPressEventArgs('r'));
return true;
}
else
return base.ProcessCmdKey(ref msg, keyData);
}