摘要: 1.在主窗体中添加一个 NotifyIcon 控件-notifyIcon12.在主窗体中添加一个 ContextMenu 控件-contextMenu1,并添加菜单项3.设置 notifyIcon1 的属性:将notifyIcon1.ContextMenu 设置为 contextMenu1 notifyIcon1.Visible = true notifyIcon1.Icon 设置到一个图标文件3.处理主窗体的closing事件,即关闭主窗体时就最小化到系统托盘private void Form1_Closing(object sender, System.ComponentModel.Can 阅读全文
posted @ 2011-04-11 20:08 surfshark 阅读(480) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 去掉最大化的图标 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void msMenu_ItemAdded(object sender, ToolStripItemEventArgs e) { try { if (e.Item.ToString() == "System.Windows.Forms.MdiContr 阅读全文
posted @ 2011-04-11 19:26 surfshark 阅读(600) 评论(0) 推荐(0) 编辑
摘要: 虽然经常使用vs.net,偶尔也会用用reflector这个工具,但是对于里面的图标,一直都没去搞明白过。今天又要用到reflector这个工具,但是因为对图标不熟悉,导致使用起来产生了些障碍,网上查找无果,就只能自己慢慢观察,现在把自己总结的一些图标进行下说明。如有偏差,请大家指出。 图 标 说 明 namespace 名称空间 interface 接口 delegate 委托 event 事件 enum 枚举 internal enum 只供同一程序集内部访问的枚举 public class 类 internal class 只供同一程序集内部访问的类只含get的属性 包括get 、set 阅读全文
posted @ 2011-04-11 17:17 surfshark 阅读(285) 评论(0) 推荐(0) 编辑