随笔分类 - winform
combobox DataGridView
摘要:1、 combobox: datasource:指定数据源 displaymember:显示文本的属性列,对应hashtable中的value valuemember:隐藏的数据列,对应hashtable中的key mdi: form的ismdicontainer属性设置为true Form4 f
阅读全文
winform
摘要:窗体事件:理解为委托变量,指向哪个函数,就执行哪个函数。窗体:显示窗体的过程是一个通过模板造对象的过程。先走构造函数,构造函数中的InitializeComponent()方法,是用来初始化界面的//窗体加载事件,在窗体显示之前触发 private void Form1_Load(object se...
阅读全文
8、图片的上传与读取
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
阅读全文
7、调用数据库(DA、Data)
摘要://新建App_Code文件夹//新建studentDA文件using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.SqlClient;using Syst...
阅读全文
6、listview(2)
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Data.SqlClient;using System.Drawing;using Sys...
阅读全文
5、listview
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
阅读全文
4、记事本
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
阅读全文
3、计算器(调用函数)
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
阅读全文
2、计算器
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
阅读全文
1、winform数据库调用(基本方法)
摘要://向数据库中新增数据 private void button1_Click_1(object sender, EventArgs e) { SqlConnection conn = new SqlConnection("server=.;database...
阅读全文
浙公网安备 33010602011771号