protected override void WndProc(ref Message m) { // Prevent base class from showing a context menu when right clicking it if (m.Msg != PI.WM_CONTEXTMENU) base.WndProc(ref m); }