Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected override void OnSizeChanged(EventArgs e) {
- if (maxSize == false && this.WindowState == FormWindowState.Maximized) {
- mainContent.Width = this.Width - 35;
- mainContent.Height = this.Height - 200;
- maxSize = true;
- return;
- } else if (maxSize == true) {
- mainContent.Width = 467;
- mainContent.Height = 419;
- maxSize = false;
- return;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement