winform中经常使用的需要长时间打开着的程序,在不操作时也需要一直保持运行状态,可以使用NotifyIcon控件
1.添加一个NotifyIcon控件notifyIcon,为控件notifyIcon的属性Icon添加一个icon图标
2.给窗体添加一个退出按钮,取名btnClose
3.主要代码如下:
using System;
using System.Collections.Generic;
using S
winform中经常使用的需要长时间打开着的程序,在不操作时也需要一直保持运行状态,可以使用NotifyIcon控件
1.添加一个NotifyIcon控件notifyIcon,为控件notifyIcon的属性Icon添加一个icon图标
2.给窗体添加一个退出按钮,取名btnClose
3.主要代码如下:
using System;
using System.Collections.Generic;
using S