上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: publicForm1(){InitializeComponent(); textBox1.Enter+=newEventHandler(textBox1_Enter);//获得焦点事件 textBox1.Leave+=newEventHandler(textBox1_Leave);//失去焦点事件。 }void textBox1_Enter(object sender,EventArgs e){MessageBox.Show("获得了焦点");}void textBox1_Leave(object sender,EventArgs e){MessageBox.Show(& 阅读全文
posted @ 2013-07-16 08:51 秋日的私语(且行且珍惜) 阅读(1509) 评论(0) 推荐(0) 编辑
摘要: for (int i = 0; i < chkLSelect.Items.Count; i++) { if (chkCheck.Checked == true) { chkLSelect.SetItemChecked(i, true); } else { chkLSelect.SetItemChecked(i,false); } } 阅读全文
posted @ 2013-07-15 18:22 秋日的私语(且行且珍惜) 阅读(541) 评论(0) 推荐(0) 编辑
摘要: DialogResult dr = MessageBox.Show("你确定要点击吗", "安全提示", MessageBoxButtons.YesNo); if (dr == DialogResult.Yes) { this.Close(); } else { MessageBox.Show("我好想睡觉啊"); } Form2 form = new Form2(); form.Show(); this.Hide(); 阅读全文
posted @ 2013-07-15 15:35 秋日的私语(且行且珍惜) 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 引用类型:类,接口,委托装箱:值类型——引用类型拆箱:引用类型——值类型在C#语言中,用正则表达式,需要引用命名空间,using system.text.RegulerExpression对于正则表达式里的\t等字符,有两种方式处理,1:用转义字符,在前边加上\2:在前进加上@符号匹配时候用:Regex.IsMatch(a,b)//把输入的a和正则表达式b判断该表达式返回的是一个布尔值 阅读全文
posted @ 2013-07-14 14:38 秋日的私语(且行且珍惜) 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 1.隐式转换2.显示转换(弱类型转换)string i = "12";int k = int.Parse(i);(强制性转换)convert 阅读全文
posted @ 2013-07-14 14:16 秋日的私语(且行且珍惜) 阅读(146) 评论(0) 推荐(0) 编辑
摘要: start:string name; int age; Console.Write("请输入您的名字:"); name = Console.ReadLine(); Console.Write("请输入您的年龄:"); age = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("姓名是:{0},年龄是:{1}", name, age); Console.WriteLine("姓名是:"+name+",年龄是:"+ age); Cons 阅读全文
posted @ 2013-07-14 14:02 秋日的私语(且行且珍惜) 阅读(172) 评论(0) 推荐(0) 编辑
摘要: --创建数据库create database studentsDB--创建表create table student(id int primary key,stuid char(10),stuname char(20),classname char(20),addresss char(40),cols int,sex char(10))--更改数据项的数据类型alter table studentalter column cols float--插入数据insert into student(id,stuid,stuname,classname,addresss,cols,sex)values 阅读全文
posted @ 2013-06-29 17:28 秋日的私语(且行且珍惜) 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 数据:描述事物的符号记录数据库:按照数据结构来组织和存储管理的数据仓库数据库管理系统:位于用户与操作系统之间的一层数据管理软件数据库系统:在计算机系统中引入数据库后的系统构成。由数据库,数据库管理系统,应用系统,数据库管理员和用户构成SQL:结构化查询语言。数据库管理系统的构成:DDL:数据定义语言。包括create,alter,dropDML:数据操作语言。实现对数据的操作。有insert,update,deleteDCL:操作权限DQL:select数据库的特点:结构化:数据有组织的存放共享性:多个用户可以同时使用独立性:数据与应用程序是相互分离的完整性:数据保存一致安全性:设置不同的用户 阅读全文
posted @ 2013-06-29 09:22 秋日的私语(且行且珍惜) 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 单选 男 女 篮球 足球 排球 阅读全文
posted @ 2013-06-24 15:14 秋日的私语(且行且珍惜) 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 注册表 注册 用户名: 密码: 确认密码: 邮箱: // JavaScript Document function CheckUserName() { if(document.getElementById("userName").value == "") { document.getElementById("userNameAttention").innerHTML = "用户名不能为空"; } else { document.getElementById("userNameAttention" 阅读全文
posted @ 2013-06-24 15:10 秋日的私语(且行且珍惜) 阅读(131) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 下一页