C#如何防止点击窗口的关闭按钮退出程序
					当前位置:点晴教程→知识管理交流
					
					→『 技术文档交流 』
					
				 
				
 在窗体的closing事件中,加入代码: 
        private void Form1_FormClosing(object sender, FormClosingEventArgs e) 
        { 
            //最小化时禁止退出,必须点击退出菜单退出 
            this.Hide(); 
            this.notifyIcon.Visible = true; 
            e.Cancel = true; 
            return; 
        } 该文章在 2021/3/29 22:57:47 编辑过  | 
		
			 关键字查询 
				相关文章 
				正在查询...  |