上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 49 下一页
摘要: --不足:23山东和16山东重复--创建DBPromary数据库create database DBPromaryuse DBPromarygo--创建promary表create table promary(proID int primary key,proName varchar(50) not null)------------------------------------------------------------------------------------------------------------------------------------------中国34个省 阅读全文
posted @ 2012-03-03 20:54 简单--生活 阅读(387) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.SqlClient;/* 执行简单的Insert语句 * SqlCommand表示向服务提交的一个命令(SQL语句等) * CommandText属性为要执行的sql语句,ExecuteNonQuery方法执行一个非查询语句(Update, Insert, Delete等) * using (SqlCommand cmd = conn.CreateCommand()){ * cmd Comm... 阅读全文
posted @ 2012-03-01 23:51 简单--生活 阅读(319) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.SqlClient;/* 连接SQLServer * 连接字符串,程序通过连接字符串指定的要连哪些台服务器上的,哪些个实例的哪些个数据库,用什么用户名密码等 * 项目内嵌mdf文件形式的连接字符串 * "Data Source=.\SQLEXPRESS;AttachDBFilename=|DataDirectory|\Database1.mdf;Integrated Security=T 阅读全文
posted @ 2012-03-01 23:51 简单--生活 阅读(349) 评论(0) 推荐(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.Forms;namespace _8下拉列表{ public partial class Form1 : Form { public Form1() { InitializeComponent();... 阅读全文
posted @ 2012-02-27 23:24 简单--生活 阅读(205) 评论(0) 推荐(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.Forms;/* 登际界面,登陆错误三次退出程序,假设用户名,密码是admin 888888, 不区分大小写 * (易错点: 局部变量与类变量的使用) * 退出程序this.Close() 或者 Application.Exit(); * * 修改密码,界面上 阅读全文
posted @ 2012-02-27 23:23 简单--生活 阅读(177) 评论(0) 推荐(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.Forms;namespace _7练习6{ public partial class Form1 : Form { public Form1() { InitializeComponent(); ... 阅读全文
posted @ 2012-02-27 23:22 简单--生活 阅读(154) 评论(0) 推荐(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.Forms;namespace _6练习4{ public partial class Form1 : Form { public Form1() { InitializeComponent(); ... 阅读全文
posted @ 2012-02-27 23:21 简单--生活 阅读(144) 评论(0) 推荐(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.Forms;namespace _4练习2{ public partial class Form1 : Form { public Form1() { InitializeComponent(); ... 阅读全文
posted @ 2012-02-27 23:21 简单--生活 阅读(140) 评论(0) 推荐(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.Forms;namespace _3练习1{ public partial class Form1 : Form { public Form1() { InitializeComponent(); ... 阅读全文
posted @ 2012-02-27 23:20 简单--生活 阅读(207) 评论(0) 推荐(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.Forms;/* 第一个Windows程序 * WinForm: Windows Form, .Net中用来开发windows窗口程序的技术,无论是之前学的控制台程序,还是后面学的ASP.Net都是调用.Net框架,因此所有知识点都是一样的 * 新建一个WIn 阅读全文
posted @ 2012-02-27 23:19 简单--生活 阅读(211) 评论(0) 推荐(0) 编辑
上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 49 下一页
简单--生活(CSDN)