protected override bool ProcessCmdKey(ref Message msg, Keys keyData)//Cancel the control that the arrow keys focus on the control, and use your own custom functions to process the processing functions of each arrow key
{
switch (keyData)
{
case :
UpKey();
return true;//Not continue processing
case :
DownKey();
return true;
case :
LeftKey();
return true;
case :
RightKey();
return true;
}
return (ref msg, keyData);
}