[求助!] 托盘图标! http://dotnet.aspx.cc/ShowDetail.aspx?id=AD98CE17-7F43-4C97-8FE5-836B6C743EDA 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 回答问题(2)工具箱的notifyIcon控件private void Form1_SizeChanged(object sender, System.EventArgs e) { if(this.WindowState==System.Windows.Forms.FormWindowState.Minimized) { this.Hide(); //窗体隐藏 this.notifyIcon1.Visible=true; //窗体显示时,托盘图标可见 } } private void notifyIcon1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) { this.Show(); this.WindowState=FormWindowState.Normal; this.Activate(); } private void notifyIcon1_Click(object sender, System.EventArgs e) { this.Visible=true; this.WindowState=System.Windows.Forms.FormWindowState.Normal; this.notifyIcon1.Visible=false; //窗体显示时,托盘图标不可见 } 查找DataTable里的数据 违反并发性: UpdateCommand 影响了预期 1 条记录中的 0 条。 c# 制作安装程序(使用install类) 微软的软件开发平台如.NET系列,是用什么语言开发的 C# 如何连接 Lotus Notus 这样的XML如何读! 五一快乐,想请教大家在VS中使用BMP小图的问题 计算数据库排名的问题 我在load的时候为什么show不出画面 有关DataGrid_UpdataCommand的问题 datatable难啊,大家帮想想有什么好的办法?? 在web中嵌入word文档的问题,欢迎大家进来讨论!
工具箱的notifyIcon控件private void Form1_SizeChanged(object sender, System.EventArgs e)
{
if(this.WindowState==System.Windows.Forms.FormWindowState.Minimized)
{
this.Hide(); //窗体隐藏
this.notifyIcon1.Visible=true; //窗体显示时,托盘图标可见
}
} private void notifyIcon1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
this.Show();
this.WindowState=FormWindowState.Normal;
this.Activate();
} private void notifyIcon1_Click(object sender, System.EventArgs e)
{
this.Visible=true;
this.WindowState=System.Windows.Forms.FormWindowState.Normal;
this.notifyIcon1.Visible=false; //窗体显示时,托盘图标不可见
}