2013年7月22日
摘要: 1、如果不想让程序在任务栏中显示,请把窗体的属性ShowInTaskbar设置为false;2、如果想让程序启动时就最小化,请设置窗体的属性WindowState设置为Minimized。(Minimized 最小化,Normal正常启动,Maximized最大化)3、拉一个NotifyIcon控件notifyIcon,为控件notifyIcon的属性Icon添加一个icon图标。4、可以为NotifyIcon加一个ContextMenuStrip右键菜单menu_Notify。5、本例子禁用了窗体最大化按钮。(设置窗体的属性MaximizeBox的属性为false)6、主要代码:#regio 阅读全文
posted @ 2013-07-22 15:27 Haydy 阅读(2166) 评论(0) 推荐(0) 编辑
摘要: 方法一: 已经证实能用的.usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Net;usingSystem.Net.NetworkInformation;namespacePingIpAddress{publicpartialclassForm1:Form{publicForm1(){InitializeComponent 阅读全文
posted @ 2013-07-22 12:46 Haydy 阅读(2127) 评论(0) 推荐(0) 编辑