随笔分类 -  winform

combobox DataGridView
摘要:1、 combobox: datasource:指定数据源 displaymember:显示文本的属性列,对应hashtable中的value valuemember:隐藏的数据列,对应hashtable中的key mdi: form的ismdicontainer属性设置为true Form4 f 阅读全文
posted @ 2015-04-12 22:20 黑桃X 阅读(181) 评论(0) 推荐(1)
winform
摘要:窗体事件:理解为委托变量,指向哪个函数,就执行哪个函数。窗体:显示窗体的过程是一个通过模板造对象的过程。先走构造函数,构造函数中的InitializeComponent()方法,是用来初始化界面的//窗体加载事件,在窗体显示之前触发 private void Form1_Load(object se... 阅读全文
posted @ 2015-03-11 18:38 黑桃X 阅读(280) 评论(0) 推荐(1)
8、图片的上传与读取
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u... 阅读全文
posted @ 2015-02-25 20:04 黑桃X 阅读(219) 评论(0) 推荐(0)
7、调用数据库(DA、Data)
摘要://新建App_Code文件夹//新建studentDA文件using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.SqlClient;using Syst... 阅读全文
posted @ 2015-02-24 14:16 黑桃X 阅读(367) 评论(0) 推荐(0)
6、listview(2)
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Data.SqlClient;using System.Drawing;using Sys... 阅读全文
posted @ 2015-02-24 13:43 黑桃X 阅读(177) 评论(0) 推荐(0)
5、listview
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u... 阅读全文
posted @ 2015-02-24 13:27 黑桃X 阅读(160) 评论(0) 推荐(0)
4、记事本
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u... 阅读全文
posted @ 2015-02-24 13:13 黑桃X 阅读(184) 评论(0) 推荐(0)
3、计算器(调用函数)
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u... 阅读全文
posted @ 2015-02-24 13:03 黑桃X 阅读(229) 评论(0) 推荐(0)
2、计算器
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u... 阅读全文
posted @ 2015-02-24 13:01 黑桃X 阅读(140) 评论(0) 推荐(0)
1、winform数据库调用(基本方法)
摘要://向数据库中新增数据 private void button1_Click_1(object sender, EventArgs e) { SqlConnection conn = new SqlConnection("server=.;database... 阅读全文
posted @ 2015-02-24 12:56 黑桃X 阅读(261) 评论(0) 推荐(0)