public bool OnKEYDOWN(ref Message m) { // Pressing escape ends dragging if ((int)m.WParam.ToInt64() == PI.VK_ESCAPE) { DragQuit(); Dispose(); return true; } return false; }