zoukankan      html  css  js  c++  java
  • 窗体最小化时,不挡住任务栏

     /// <summary>
            /// 窗体最小化时,隐藏到系统托盘
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            private void MainFace_SizeChanged(object sender, EventArgs e)
            {
                if (this.WindowState == FormWindowState.Minimized)
                {
                    this.Hide();
                    this.notifyIcon1.Visible = true;
                }
            }

            private void notifyIcon1_Click(object sender, EventArgs e)
            {
                this.Visible = true;
                this.WindowState = FormWindowState.Maximized;
                this.MaximumSize = new System.Drawing.Size(Screen.PrimaryScreen.WorkingArea.Width,Screen.PrimaryScreen.WorkingArea.Height+6);
                this.notifyIcon1.Visible = false;
            }

  • 相关阅读:
    Count on a tree
    图论1 1009
    DP2 1008
    DP1 1008
    NOIP 模拟 1006
    2019 CSP-S 初赛退役记
    9.13——TEST NOIP模拟测试
    [洛谷P2387][NOI2014]魔法森林
    [洛谷P2596][ZJOI2006]书架
    [BZOJ4241]历史研究
  • 原文地址:https://www.cnblogs.com/markli/p/3708761.html
Copyright © 2011-2022 走看看