上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 23 下一页
摘要: private void button1_Click(object sender, EventArgs e) //将数据库里的数据直接显示在datagridview1里面 { SqlConnection conn = new SqlConnection("ser... 阅读全文
posted @ 2015-06-09 23:10 XCml 阅读(298) 评论(0) 推荐(0) 编辑
摘要: private void button1_Click(object sender, EventArgs e)//将数据库中读出来的信息直接显示在listview里 { //连接数据库 SqlConnection conn = new SqlConnectio... 阅读全文
posted @ 2015-06-09 23:08 XCml 阅读(201) 评论(0) 推荐(0) 编辑
摘要: private void button1_Click(object sender, EventArgs e) //查询 { dataGridView1.AutoGenerateColumns = false;//AutoGenerateColumns 是否将某个... 阅读全文
posted @ 2015-06-09 23:01 XCml 阅读(1319) 评论(0) 推荐(0) 编辑
摘要: private void button3_Click(object sender, EventArgs e) { if(listView1.SelectedItems.Count>0) { string x = listView1.Selec... 阅读全文
posted @ 2015-06-08 22:24 XCml 阅读(187) 评论(0) 推荐(1) 编辑
摘要: private void button1_Click(object sender, EventArgs e) //登陆页面的第一栏的文本 要将它传到Main窗体的状态栏 { //... 阅读全文
posted @ 2015-06-08 22:19 XCml 阅读(264) 评论(0) 推荐(0) 编辑
摘要: private void button1_Click(object sender, EventArgs e)//从硬盘打开图片显示在窗体里面 { OpenFileDialog op = new OpenFileDialog();//造一个打开对话框 ... 阅读全文
posted @ 2015-06-08 21:58 XCml 阅读(267) 评论(0) 推荐(0) 编辑
摘要: private void button1_Click(object sender, EventArgs e) { SqlConnection conn = new SqlConnection("server=.;database=Cml;user=sa;pwd=... 阅读全文
posted @ 2015-06-04 21:57 XCml 阅读(214) 评论(0) 推荐(0) 编辑
摘要: public class method { //成员变量 private SqlConnection conn; private SqlCommand cmd; public method() //通过构造函数给变量赋值 { ... 阅读全文
posted @ 2015-06-02 22:20 XCml 阅读(211) 评论(0) 推荐(0) 编辑
摘要: namespace 数据库增删改查{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private ... 阅读全文
posted @ 2015-06-01 20:53 XCml 阅读(388) 评论(0) 推荐(0) 编辑
摘要: private string link = "server=.;database=list;user=sa;pwd=123"; public void chaxun() //创建一个查询函数 { SqlConnection coon = new... 阅读全文
posted @ 2015-06-01 20:51 XCml 阅读(3623) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 23 下一页