c#备忘录
文章平均质量分 55
njxb405
这个作者很懒,什么都没留下…
展开
-
c#类型用法
·6.1.1 字符串类型(2)逐字字符串 string 字符串[=@符串初值] string str1="星期一//星期二"; 星期一/星期二 string str1=@"星期一//星期二"; 星期一//星期二 (原型输出)·6.1.2结构类型struct 结构类型名 { 成员声明; }用法: struct studen原创 2007-01-11 10:25:00 · 683 阅读 · 0 评论 -
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 · 482 阅读 · 0 评论 -
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 · 592 阅读 · 0 评论 -
控件共享事件
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 · 614 阅读 · 0 评论 -
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 · 3865 阅读 · 0 评论 -
.net计算机调试管理服务被禁止处理办法
进入:管理工具->服务1.选中 Machine Debug manger 2.右键->属性->启动类型="自动"原创 2007-07-02 17:44:00 · 538 阅读 · 0 评论