自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(22)
  • 收藏
  • 关注

原创 .net计算机调试管理服务被禁止处理办法

 进入:管理工具->服务1.选中 Machine Debug manger  2.右键->属性->启动类型="自动"

2007-07-02 17:44:00 585

原创 C# .NET 函数列表

 1、DateTime 数字型System.DateTime currentTime=new System.DateTime();1.1 取当前年月日时分秒currentTime=System.DateTime.Now;1.2 取当前年int 年=currentTime.Year;1.3 取当前月int 月=currentTime.Month;1.4 取当前日int 日=currentTime.D

2007-06-30 18:26:00 417

原创 限制录入小于或等于100.00%的正则表达式

 在实际操作中,限制录入小于或等于100.00%的正则表达式:([1-9][0-9]|[0-9])/./d{2}(%)|1[0][0]/.[0][0](%)

2007-06-24 09:03:00 895

原创 RichTextBox文本保存为WORD格式

RichTextBox文本保存为WORD格式:     private void button1_Click(object sender, System.EventArgs e)        ...{//保存为WORD文件            if(this.richTextBox1.Text=="")                return;            if(th

2007-01-24 19:48:00 2440

原创 鼠标事件

八个鼠标事件:      对象_Click:在对象上单击;      对象_DoubleClick:在对象上双击;      对象_MouseDown:在对象上检测到鼠标键被按住;      对象_MouseEnter:进入;      对象_MouseHover:停驻;      对象_MouseLeave:离开;      对象_MouseMove:移动;      对象_MouseUp:放开

2007-01-24 18:57:00 723

原创 Keys.Up,Down,Left,Right用法及键盘值

用法及键盘值Up:      38Down: 40Left:     37Right:  39 "现在按下" + e.KeyCode.ToString() +"键,键盘值为" + e.KeyValue.ToString(); private void Form1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)  .

2007-01-24 18:21:00 5413

原创 KeyPress事件的用法

 第一个字为字符,且只能录入6位数字:private void txtId_TextChanged(object sender, System.EventArgs e)  {   int Loc = txtId.SelectionStart;   txtId.Text = txtId.Text.ToUpper();   txtId.SelectionStart = Loc;    } 

2007-01-24 18:03:00 3945

原创 控件共享事件

  private System.Windows.Forms.Button btn1;  private System.Windows.Forms.Button btn2;  private System.Windows.Forms.Button btn3;  private System.Windows.Forms.Label lblMsg;        private void bt

2007-01-24 17:46:00 657

原创 新增、删除事件

 数字计算时的用法:   private void MyButtonClick(object sender, System.EventArgs e)  {   try   {    lblAns.Text =(float.Parse(txtN1.Text) + float.Parse(txtN2.Text)).ToString();   }   catch   {   }  }  priv

2007-01-24 17:36:00 494

原创 实用DOS命令

 1.把列示的文件输出到文件(*.txt):     dir /OEN *.* ->FielsName.txt     注 /o:用分类顺序列出文件;              E:按扩展名(字母顺序)              N:按名称(字母顺序)              S:按大小              D:按日期  

2007-01-17 12:49:00 436

原创 对象(Object)理解

 1.对象(Object)  (1)属性(Property)(Attribute) 描述:CPU1.Speed=80  (2)方法(Method) 描述:Console.WriteLine(“方法”);                   Car1.Move(100,200);Car1.TurnLeft();Car1.Turn(dirLeft,45);  (3)信息(Message)与事件(Eve

2007-01-14 10:23:00 589

原创 初学C#把需理解的东西记下勉来回翻书本了

1.初学C#把需理解的东西记下勉来回翻书本了: 1.1 Dispose:此方法用于释放对象所占用的资源; 1.2  private void button1_Click(object sender, System.EventArgs e)               System.EventArgs :是包含事件数据的类的基类,用来将这个事件处理程序附加到Button类的Click事件上,代码如下

2007-01-13 10:11:00 622

原创 数据转换

 =Convert.ToSingle 

2007-01-13 09:48:00 504

原创 c#几种方法调用的对比理解

c#几种方法调用的对比理解:class Class2 {1:  public string GetWelcome (string username, bool ismale)       1)未定义 Static(静态方法):就必须用new 创建一个类的对象(Class2),才能调用GetWelcome()方法;2:  public static string GetWelcome (string

2007-01-11 13:26:00 645

原创 2.1程序结构

 2.1程序结构1.命名空间using 开头是系统定义、自定义。开始前先声明:Using system,就不需加system.console.WriteLine(……);命名空间可包含:类(class)、结构(struct)、接口(interface)、枚举(enum)、委托(delegate)等。例:Namespace N1    // N1属于全域命名空间;{

2007-01-11 11:47:00 515

原创 c#类型用法

 ·6.1.1 字符串类型(2)逐字字符串  string 字符串[=@符串初值]  string str1="星期一//星期二";                 星期一/星期二  string str1=@"星期一//星期二";             星期一//星期二 (原型输出)·6.1.2结构类型struct 结构类型名  {    成员声明;   }用法:  struct studen

2007-01-11 10:25:00 733

原创 DevExpress.XtraReports 画表格线

 DevExpress.XtraReports 画表格线  1.  选xrTablel或xrTableCell;  2. 设置Borders属性。

2006-12-31 23:24:00 2662

原创 常用正则表达式集锦

 在使用RegularExpressionValidator验证控件时的验证功能及其验证表达式介绍如下:匹配中文字符的正则表达式: [/u4e00-/u9fa5]匹配双字节字符(包括汉字在内):[^/x00-/xff]应用:计算字符串的长度(一个双字节字符长度计2,ASCII字符计1)String.prototype.len=function(){return this.repla

2006-12-25 14:49:00 597

转载 www.devexpress.com

http://www.devexpress.com/Help/?document=xtrabars/devexpressxtrabarspopupmenutopic.htm 

2006-12-25 14:25:00 853

转载 msdn.microsoft.com

http://msdn.microsoft.com/library/chs/default.asp?url=/library/CHS/dv_wrcore/html/wrgrfexcelobjects.asp http://www.microsoft.com/china/MSDN/library/default.aspx?mfr=truehttp://msdn2.microsoft.com/

2006-12-25 14:16:00 743

原创 SQL_GOTO的用法

USE pubsDECLARE @num intIF @num = 0      GOTO ErrELSE      BEGIN      PRINT authors found      --select * from  authors      --GOTO Last GOTO Err      ENDErr: PRINT no authors foundLast: PRINT Fi

2006-12-25 14:10:00 1933

原创 SQL_输出到EXCEL

EXEC master..xp_cmdshell bcp Engprice.dbo.tcn_Manpower  out c:/temp1.xls -c -q -S"(local)" -U"sa" -P"sa" 

2006-12-25 14:07:00 593

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除