1.拖一个notifyIcon(任务栏右侧通知区显示图标)控件到窗体中。再拖一个contextMenuStrip(右击快捷菜单控件)到窗体中。 2.设置notifyIcon控件(任务栏右侧通知区显示图标)的属性Icon(托盘图标),ContextMenuStrip(图标关连菜单) 如下图所示: 3.设置窗体WindowState和ShowInTaskbar的属性,如图所示:   ... Read More
posted @ 2010-03-05 23:22 一笑解千愁 Views(1010) Comments(0) Diggs(0)
1.新建窗体Form1,并设置界面好下: Form1的代码如下:编译后运行结果如下: Read More
posted @ 2010-03-05 22:35 一笑解千愁 Views(4280) Comments(0) Diggs(0)
掩码元素说明0数字,必选。此元素将接受0到9之间的任何一个数字。9数字或空间,可选。#数字或空间,可选。如果掩码中该位置为空白,在Text属性中将把它呈现为一个空格。允许使用加号(+)和减号(-)。L字母,必选。将输入限定为ASCII字母a-z和A-Z。此掩码元素等效于正则表达式中的[a-zA-Z]。?字母,可选。输入限定为ASCII字母a-z和A-Z。此掩码元素等效于正则表达式中的[a-zA-Z... Read More
posted @ 2010-03-05 11:19 一笑解千愁 Views(658) Comments(0) Diggs(0)
双击如上所示的事件,进入代码编辑窗口,输入如下代码:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Form... Read More
posted @ 2010-03-05 10:38 一笑解千愁 Views(331) Comments(0) Diggs(0)