继承Viewer,重写ProcessCmdKey
public class MMVieww: Viewer
{
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if ((int)keyData == 131152) //ctrl+P枚举值https://docs.microsoft.com/zh-cn ... ew=netframework-4.8
return true;
//System.Diagnostics.Debug.WriteLine("NK : " + keyData);
return base.ProcessCmdKey(ref msg, keyData);
}
} |