zoukankan      html  css  js  c++  java
  • 最大化最小化关闭事件

    if (this.WindowState == FormWindowState.Maximized)
    {
    btnmax.Text = "最大";
    this.WindowState = FormWindowState.Normal;
    }
    else
    {
    btnmax.Text = "还原";
    //Tooltp(button2, "还原");
    this.WindowState = FormWindowState.Normal;
    this.MaximumSize = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);
    this.WindowState = FormWindowState.Maximized;
    }

     this.WindowState = FormWindowState.Minimized;

     Application.Exit();

  • 相关阅读:
    StackView
    横竖屏
    Html
    UILabel
    NSString
    NSPredicate|谓词
    iphone
    函数
    UIBezierPath
    UICollectionView
  • 原文地址:https://www.cnblogs.com/lmcblog/p/2608625.html
Copyright © 2011-2022 走看看