产后盆底肌检查松弛:将程序最小化到系统托盘
来源:百度文库 编辑:偶看新闻 时间:2024/07/06 20:02:32
1.添加一个NotifyIcon控件2.绑定控件的单击和双击事件 ///
/// 单击事件
///
///
///
private void notifyIcon1_Click(object sender, EventArgs e)
{
this.Visible = false;
notifyIcon1.Visible = true;
this.TopMost = false;
}
///
/// 双击事件
///
///
///
private void notifyIcon1_DoubleClick(object sender, EventArgs e)
{
this.Visible = true;
this.WindowState = FormWindowState.Normal;
this.TopMost = true;
notifyIcon1.Visible = true;
}
///
/// 重设大小
///
///
protected override void OnResize(EventArgs e)
{
if (WindowState == FormWindowState.Maximized)
{
//最大化时所需的操作 ;
this.Visible = true;
notifyIcon1.Visible = true;
}
else if (this.WindowState == FormWindowState.Minimized)
{
//最小化时所需的操作
this.Visible = false ;
notifyIcon1.Visible = true;
this.TopMost = false;
}
}3.设置控件的Icon属性(任务栏显示的图标)和Text属性(鼠标放在拖盘上显示的文字提示)
/// 单击事件
///
///
///
private void notifyIcon1_Click(object sender, EventArgs e)
{
this.Visible = false;
notifyIcon1.Visible = true;
this.TopMost = false;
}
///
/// 双击事件
///
///
///
private void notifyIcon1_DoubleClick(object sender, EventArgs e)
{
this.Visible = true;
this.WindowState = FormWindowState.Normal;
this.TopMost = true;
notifyIcon1.Visible = true;
}
///
/// 重设大小
///
///
protected override void OnResize(EventArgs e)
{
if (WindowState == FormWindowState.Maximized)
{
//最大化时所需的操作 ;
this.Visible = true;
notifyIcon1.Visible = true;
}
else if (this.WindowState == FormWindowState.Minimized)
{
//最小化时所需的操作
this.Visible = false ;
notifyIcon1.Visible = true;
this.TopMost = false;
}
}3.设置控件的Icon属性(任务栏显示的图标)和Text属性(鼠标放在拖盘上显示的文字提示)
如何将foobar最小化到系统托盘?
C#最小化到系统托盘
最小化到系统托盘是什么意思
能不能将Windows Media Player10最小化到系统托盘
如何将OPERA浏览器最小化到系统托盘区
怎样把运行的程序最小化到系统托盘?
请问我的程序最小化到系统托盘时,任务栏上怎么不显示
求助:如何唯一确定一已最小化到系统托盘的外部程序。
如何让WINAMP最小化时到系统托盘?
如何把VFP表单最小化到系统托盘
梦幻西游能最小化到系统托盘吗?
怎样让Outlook Express最小化到系统托盘?
maxthon只会最小化到系统托盘
QQ最小化到系统托盘的快捷键是什么
QQ登陆自动最小化到系统托盘
everest ultimate 如何才能最小化到系统托盘
怎样把winamap最小化到系统托盘?
怎样将asp程序最小化到windows快捷菜单啊?
请问 QQ幻想如何最小化到系统托盘,是否可以?
怎么能使讯雷在下载时最小化到系统托盘?
我打开一个软件,想把它最小化到系统托盘
windows live mail desktop 如何最小化到系统托盘?
如何让火狐浏览器最小化时到系统托盘区啊
Windows Media Player 如何最小化到系统托盘中呢?