-
测试链接并显示查询数据
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;//Download by http://down.liehuo.netusing System.Data.SqlClient;namespace Case05_12{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { try { //生成连接数据库字符串 string ConStr = "data source=.;database=ljp;uid=sa;pwd=123"; //定义SqlConnection对象实例 SqlConnection con = new SqlConnection(ConStr); //定义Select查询语句 string Sql = "select*from biaoge"; SqlDataAdapter ada = new SqlDataAdapter(Sql, con); DataSet ds = new DataSet(); //定义DataSet对象实例 ada.Fill(ds); //连接数据表格,显示数据 this.dataGridView1.DataSource = ds.Tables[0].DefaultView; } catch { return; } } private void button2_Click(object sender, EventArgs e) { this.Close(); Application.Exit(); } }}
- 2014-10-02下载
- 积分:1
-
ImageTool
图像处理 二值化 旋转 90 180 等,支持多种 图片(图像处理 二值化 旋转)
- 2012-05-04 15:26:20下载
- 积分:1
-
XYDispDriver
在vc中简化调用com组件,极其方便(simplification of the vc call com components, extremely convenient)
- 2005-03-05 05:20:40下载
- 积分:1
-
TextRecognitionSystemBasedOnVisualDesignAndImpleme
说明: 基于视觉的文字识别系统的设计与实现.pdf(Text recognition system based on visual design and implementation. Pdf)
- 2010-04-19 16:48:30下载
- 积分:1
-
MKE06P80M48SF0RM
freescale KE系列中文使用手册,适合新手和英语不善长者使用。(Freescale KEXX Chinese manual, suitable for beginners and poor English elders use.)
- 2016-05-16 15:19:37下载
- 积分:1
-
高仿QQ2013登陆界面
高仿QQ2013登陆界面
- 2014-07-13下载
- 积分:1
-
Sy7
编程实现一个静态切分为左右两个窗口的 MDI 应用程序,并在左视图中统计右视图中
绘制圆的个数,实现文件的保存和读取;左右视图属于不同的视图类(Programming a static cut into about two MDI application window and draw a circle in the right view statistics of the number in the left view, save and read files to achieve views are different views about the class)
- 2013-12-31 21:36:25下载
- 积分:1
-
SD3078时钟芯片IIC实验
说明: SD3078 IIC相关源代码程序实验,用于测试时钟的稳定性(SD3078 IIC Source program experiment, used to test the stability of the clock)
- 2021-03-31 19:49:08下载
- 积分:1
-
基于C的文件传输代码(客户端从服务器获取)
客户端从服务器获取文件,客户端输入要传输文件的名字即可。
- 2022-03-18 12:11:20下载
- 积分:1
-
STM103-ADC
将利用STM32 的ADC1通道1来采样外部电压值,并在TFTLCD模块上显示出来。 STM32拥有1~3个ADC(STM32F101/102系列只有1个ADC),这些ADC可以独立使用,也可以使用双重模式(提高采样率)。
- 2022-02-26 17:34:38下载
- 积分:1