Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected override void OnLoad(EventArgs e)
- {
- this.BaseModalSetup();
- VisualManager.OverrideDesignerStyles(this);
- base.OnLoad(e);
- _hasInitialized = true;
- this.MinimizeBox = true;
- this.BorderStyle = MetroBorderStyle.None;
- this.FormBorderStyle = FormBorderStyle.None;
- }
- protected override CreateParams CreateParams
- {
- get
- {
- if (this.originalStyle == -1)
- {
- this.originalStyle = base.CreateParams.ExStyle;
- }
- CreateParams cp = base.CreateParams;
- if (!_hasInitialized)
- cp.ExStyle |= 0x02000000; // WS_EX_COMPOSITED
- else
- cp.ExStyle = this.originalStyle;
- return cp;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement