zoukankan      html  css  js  c++  java
  • .net 系统托盘

    //实现.net系统托盘

    //隐藏程序显示托盘,notifyIcon 是.net自带的NotifyIcon控件,要显示托盘需要设置notifyIcon的显示图标

    //没有要显示的图标,托盘是不会显示的

     private void menuItem13_Click(object sender, System.EventArgs e)
      {
                notifyIcon1.Visible = true;
                this.Hide();

              
      

      

      
      }

    //点击托盘后显示程序窗体

    private void notifyIcon1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
      {
                             
                          
                            this.Show();
                            this.WindowState = FormWindowState.Maximized;

                            notifyIcon1.Visible = false;
                            this.ShowInTaskbar = true;
          }

  • 相关阅读:
    粘包_Server
    初见UDP_Server
    初见UDP_Client
    TCP/UDP协议
    网络编程相关概念
    mmap实现大文件快速拷贝
    生成这消费者问题(多线程实现)
    线程同步互斥实现资源访问
    信号灯(线程互斥)
    线程属性
  • 原文地址:https://www.cnblogs.com/zfking/p/506762.html
Copyright © 2011-2022 走看看