public UnfocusablePanel() { SetStyle(ControlStyles.Selectable, false); SetStyle( ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.UserPaint, true); }