-
模数转换
说明: 开关电源控制中的模数采样程序,有详细的注释。(Modular sampling procedures in switching power supply control are annotated in detail.)
- 2020-06-20 21:40:02下载
- 积分:1
-
C#读取数据库内容并在dataGridView中显示
C#从数据库中读取内容并显示在dataGridView中,这似乎是一个很实用的功能,在数据库应用的时候,我们都要通过dataGridView来显示数据,这个例子可帮助初学者很好的掌握此功能的具体实现,一些代码片段分享如下:
private void button1_Click(object sender, EventArgs e)
{
//实例化SqlConnection变量conn,连接数据库
conn = new SqlConnection("server=.;database=db_15;uid=sa;pwd=");
//实例化SqlDataAdapter对象
SqlDataAdapter sda = new SqlDataAdapter("select * from tb_emp", conn);
DataSet ds = new DataSet(); //实例化DataSet对象
sda.Fill(ds);//使用SqlDataAdapter对象的Fill方法填充DataSet
dataGridView1.DataSource = ds.Tables[0];//设置dataGridView1控件的数据源
dataGridView1.RowHeadersVisible = false;//禁止显示行标题
//使用for循环设置控件的列宽
for (int i = 0; i < dataGridView1.ColumnCount; i++)
{
dataGridView1.Columns[i].Width = 84;
}
button1.Enabled = false;//禁用按钮
dataGridView1.Columns[0].ReadOnly = true;//将控件设置为只读
}
private DataTable dbconn(string strSql)//建立一个DataTable类型的方法
{
this.adapter = new SqlDataAdapter(strSql, conn);//实例化SqlDataAdapter对
- 2022-07-24 21:44:03下载
- 积分:1
-
wuziqi
五子棋游戏源码,界面优美经典,编程思路清晰,非常适合学习。(Backgammon game source code, interface and beautiful classic programming ideas clearly, very suitable for learning.)
- 2013-04-05 23:20:51下载
- 积分:1
-
Udddc_simus
用MATLAB实现软软件无线电中DDC的仿真
(DDC soft software radio simulation with MATLAB)
- 2012-07-25 23:28:48下载
- 积分:1
-
微信打飞机
高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,高防微信打飞机,
- 2022-03-02 05:40:25下载
- 积分:1
-
houbolt-newmark
采用huobolt和newmark写的求解动力方程的程序,能算速度,加速度,位移等。用C++编写的。(Using huobolt and newmark written procedure for solving dynamic equations can be calculated velocity, acceleration, displacement and so on. Written in C++.)
- 2012-01-09 21:29:24下载
- 积分:1
-
51单片机的eeprom和iic通信软件模拟程序
51单片机的eeprom和iic通信软件模拟程序(Eeprom and IIc communications in 51 single chip machines)
- 2020-06-19 12:00:06下载
- 积分:1
-
calculadora
calculator with mplab c18
- 2014-10-23 02:03:48下载
- 积分:1
-
Libev
是西安十大十大是的撒的撒旦撒旦撒撒地方所得税法的方式电话费歌手大赛浮点数桂附地黄发电公司风高放火广东佛山都发生非官方啊顺丰到付到付的撒旦
- 2022-04-21 15:54:20下载
- 积分:1
-
list
一个关于列表框控件自绘的小程序,点击某项会相应显示输入框或者组合框。(A small program on self-drawn list box control, the click of a corresponding input box or combo box.)
- 2013-03-05 15:21:07下载
- 积分:1