小菜学习Winform(七)系统托盘
前言
有些程序在关闭或最小化的时候会隐藏在系统托盘中,双击或右击会重新显示,winform实现其功能很简单,这边就简单的介绍下。
实现
在winform实现托盘使用notifyIcon控件,如果加菜单的话再结合下contextMenuStrip控件,我们看下代码:
this.notifyIcon1.Icon = new Icon(@"H:\学习资料\C# 窗体应用程序\自练\实现系统托盘\ico\qq彩色.ico");
this.notifyIcon1.Visible = true;
this.notifyIcon1.Text = "在线";
只要设置这些属性就行了,然后添加双击事件:
private void notifyIcon1_MouseClick(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
this.Show();
this.Focus();
}
}
就这么简单,主要用Hide()和Show()方法隐藏和显示窗体,其他的东西可以自由扩展。
实现效果:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMMAAACICAIAAADVgshSAAAgAElEQVR4nO3deVxU5foA8Pd9j5V2b79udxHNvOaaW+6mqJALmnrT0jRLs1CD1EKGWZhBM4+apiji1tXM7rVbmoq5XCXNUsEFN4Z9F5XZh0UUAcEZZt7fH2eZM2fOGRCEAe88n+fDZ5gZJpRvz/O873sGAekNT0Ty9estMhMTkxMTU9Tq9OTkrLS03MzM/Nzcgvx83e3bgCRJmzeaNkiS/P3XX1tunvv99/NnzyZcuJB45UpacnJORsbN3FxAkmRNTY2VCQsTD5moZqKqqurBgwcPHjyorKysrKysqKgoLy8vLy+/f/9+WVlZWVmZp39ALSZIkgwMDm7R+c2OHfFnz8adOZNw4YL62rW8rCyvJA8ESZJVdnvLzd/i4z8KDp4bHPzP7dt///XXS/HxacnJXkkeCJIkjRgbMTZw0uia9maaRXZ8145Px8dPmTWLwnT98mWvJA8ESZIpRffTSx9k37fkVtryHthvVGE6HzTTzKvkp6EanzwbP2Ne8M8HD54/d84ryQNBkuThq7m/pOrib5VdMVquF9kTi3FLyiI6b5Xhdz4MjoqM/O3UqaaVFBsE3IZvdJ7NZrPZ8qJ9AQBBsTZbXrQvdWdetK/jcbcv5fwitTzJI0GS5Or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bf+Sa+RDyLXXMXm3HFu+KKv3FkEZW72Iwv2hVftCuu6Nt4p9wdX7Q7vui780WRJ02zduT/XZbSSZZMYdpzsah1n+kwYLOQpHAT83v+mEncKV32IeW8d48Y6EVZmJ4IE61AYjWJORjR0Ee2Eh2S6FCoDoYWIEkBCrkFP82FizJgcBKcdxG+fwL0nb3u+19f32buvJKW9DKp77RC32mF/u9f6Dt+oe+4XNdxue6lz3UdPtd2+FzD5ovLNO2XFbRfWtCOztvtIkRSdbud6pYPlcqbTOY7MpzKG23Db7QNv+Ejloo8l8z1UeS2lbOZw08Zm9l0SrPbSrP+5shMTmbQGUZn27CMtmEZPmHpdErSfSRpbakMTWsrSaXSR5LqI0nxkaS0C0ttJ3Fk+7CUF5nsIE15SZrcUZbSUZryd1nK32XJnWTJfmsz1313AvSYBids+3+JltFH958DFgAAAABJRU5ErkJggg==" alt="" />
程序下载:实现系统托盘.rar
小菜学习Winform(七)系统托盘的更多相关文章
- 小菜学习Winform(一)贪吃蛇2
前言 上一篇<小菜学习Winform(一)贪吃蛇>中实现了简单版的贪吃蛇,在文章末也提到需要优化的地方,比如使用oo.得分模式.速度加快模式和减少界面重绘.因为是优化篇,实现方式上一篇有, ...
- 小菜学习Winform(六)剪切板和拖放复制
前言 在做winform项目的时候有时候会用到复制粘贴,在.net中提供了Clipboard类来操作剪切板,我们来看下. clipbrd.exe clipbrd是系统剪切板程序,但是在vista及以上 ...
- 小菜学习Winform(二)WMPLib实现音乐播放器
前言 现在网上有很多的音乐播放器,但好像都不是.net平台做的,在.net中实现音乐文件的播放功能很简单,下面就简单实现下. SoundPlayer类 在.net提供了音乐文件的类:SoundPlay ...
- 小菜学习Winform(五)窗体间传递数据
前言 做项目的时候,winfrom因为没有B/S的缓存机制,窗体间传递数据没有B/S页面传递数据那么方便,今天我们就说下winfrom中窗体传值的几种方式. 共有字段传递 共有字段传递实现起来很方便, ...
- 小菜学习Winform(四)MDI窗体(附示例)
前言 在做winfrom项目的时候我们可能会用到嵌套窗体,就是说一个容器中有多个窗体,可以分别管理和应用这些窗体,.net中提供了一种机制就是MDI,可能大家都会用,这边就简单的介绍下. 简单应用 w ...
- 小菜学习Winform(三)Socket点对点通信
前言 Socket的英文原义是“孔”或“插座”,其实在网络编程中Socket就是这个意思,就像我们打电话,要首先知道对方的手机号一样,这个手机号就相当于一个Socket号.一个插座,在网络编程中就是i ...
- 小菜学习Winform(一)贪吃蛇
前言 说到贪吃蛇,大家可能小时候都玩过,小菜最近在整理Winfrom的学习系列,那我觉得有兴趣才会有学习,就从这个小游戏讲起吧. 实现 其实我刚开始学习编程的时候,感觉写个贪吃蛇的程序会很难,因为涉及 ...
- winform显示系统托盘,双击图片图表显示窗体,退出窗体是否提示
private void Form1_FormClosing(object sender, FormClosingEventArgs e) { DialogResult result = Messag ...
- Liunx学习总结(七)--系统状态查看和统计
sar命令 sar 是一个非常强大的性能分析工具,它可以获取系统的 cpu/等待队列/磁盘IO/内存/网络等性能指标.功能多的必然结果是选项多,应用复杂,但只要知道一些常用的选项足以. 语法 sar ...
随机推荐
- CSS预处理框架:less,scss
CSS预处理器:less和sass:CSS 预处理器是一种语言用来为 CSS 增加一些编程的的特性,无需考虑浏览器的兼容性问题,例如你可以在 CSS 中使用 变量.简单的程序逻辑.函数等等在编程语言中 ...
- Python使用总结二
近来因为工作需要,用Python比较多,写得多了,收获也多.借此记录总结一下,方便以后反思. 一.IDE的选择 1.notepad++加上cmd窗口 前些时候写python脚本都用notepad++编 ...
- python 之 Django 基础篇
1,Django流程介绍 MTV模式 著名的MVC模式:所谓MVC就是把web应用分为模型(M),控制器(C),视图(V)三层:他们之间以一种插件似的,松耦合的方式连接在一起. 模型负责业务对象与数据 ...
- Oracle中的CHR()函数与ASCII()函数
工作中经常会处理一些因特殊字符而导致的错误,如上周我就遇到了因为换行符和回车符导致的数据上报的错误,这种错误比较难以发现,通常是由于用户的输入习惯导致的,有可能数据极少,就那么几行错误从而导致整个数据 ...
- MySql怎样去掉某个字段最后的逗号或最后的字
update 表 set 字段=left(字段,char_length(字段)-1) where right(字段,1)=',';
- SQL Server 触发器
触发器是一种特殊类型的存储过程,它不同于之前的我们介绍的存储过程.触发器主要是通过事件进行触发被自动调用执行的.而存储过程可以通过存储过程的名称被调用. Ø 什么是触发器 触发器对表进行插入.更新.删 ...
- sql查询
结果集是 id name 1 张三2 张三3 李四4 王五5 王五我想查询出有多少不重名的人的数量,并显示在每一行结果集里面结果如下:num id name 3 1 张三3 2 ...
- 享元模式 - Flyweight
Flyweight(享元模式) 定义 GOF:运用共享技术有效地支持大量细粒度的对象. GOF的定义比较专业化,通俗来说,当你有大量相似的实例时,你把其中相同的实例取出来共享. 例子 在你的游戏场景中 ...
- TaintDroid深入剖析之启动篇
1 背景知识 1.1 Android平台软件动态分析现状 众所周知,在计算机领域中所有的软件分析方法都可以归为静态分析和动态分析两大类,在Android平台也不例外.而随着软件加固.混淆技术的不 ...
- 三种观察者模式的C#实现
系列主题:基于消息的软件架构模型演变 说起观察者模式,估计在园子里能搜出一堆来.所以写这篇博客的目的有两点: 观察者模式是写松耦合代码的必备模式,重要性不言而喻,抛开代码层面,许多组件都采用了Publ ...