public RibbonForm() { if (WinApi.IsWindows && !WinApi.IsGlassEnabled) { FormBorderStyle = FormBorderStyle.None; SetStyle(ControlStyles.ResizeRedraw, true); SetStyle(ControlStyles.Opaque, WinApi.IsGlassEnabled); SetStyle(ControlStyles.AllPaintingInWmPaint, true); DoubleBuffered = true; } _helper = new RibbonFormHelper(this); }
public RibbonForm() { if (WinApi.IsWindows && !WinApi.IsGlassEnabled) { SetStyle(ControlStyles.ResizeRedraw, true); SetStyle(ControlStyles.Opaque, WinApi.IsGlassEnabled); SetStyle(ControlStyles.AllPaintingInWmPaint, true); DoubleBuffered = true; } //SetStyle(ControlStyles.EnableNotifyMessage, true); _helper = new RibbonFormHelper(this); }