摘要:
using System; using System.Text.RegularExpressions; namespace program { class wangjun { public virtual void show() //定义虚方法 { Console.WriteLine("show"); } ... 阅读全文
摘要:
using System; using System.Text.RegularExpressions; namespace program { class wangjun { public void show(string s1) { Console.WriteLine(s1); } //定义委... 阅读全文
摘要:
事件的定义: [访问修饰符] event 委托类型 事件变量; using System; using System.Text.RegularExpressions; namespace program { class wangjun { //定义委托类型 public delegate void delshow(); //定... 阅读全文
摘要:
画线:(将下面代码复制到Button的点击事件中) Pen p = Pens.Red; //设置线的颜色为红色 Point p1 = new Point(0,0); //设置第一个点的X和Y坐标 Point p2 = new Point(this.ClientSize.Width,this.ClientSize.He... 阅读全文
摘要:
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; //使用线程时要引用命名空间... 阅读全文
摘要:
Lock(object)锁的使用 using System; using System.Threading; namespace program { class wangjun { public static string buff = "0"; public const int ab = 1000000; private objec... 阅读全文
摘要:
select语句中只能使用sql函数对字段进行操作(链接sql server), select 字段1 from 表1 where 字段1.IndexOf("云")=1; 这条语句不对的原因是indexof()函数不是sql函数,改成sql对应的函数就可以了。 left()是sql函数。 select 字段1 from 表1 where charindex('云',字段1)=1; 字符串函数对二进... 阅读全文