-
测试链接并显示查询数据
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
-
Flappy Bird windows实现
Flappy Bird 是一款点击鼠标来控制小鸟通过管道,改程序使用win32 实现,编译器是vs2010,整个项目功能完善。
- 2022-05-07 15:56:03下载
- 积分:1
-
ExtractFile
用VS 2005的平台,用VC的MFC框架,帮朋友做的一个excel的提取文件的工具,包括excel的读写操作,还有部分文字处理,(Withthe VCMFCframeworkto help a friendto dowithVS2005platforman excelfileextractiontools, includingexcelinreading and writing,as well as someword processing,)
- 2015-03-12 09:37:34下载
- 积分:1
-
STM32F10x_StdPeriph_Lib_V3.5.0
基于stm32的飞行器代码,用遥控器可以实现对飞行器控制飞行,可以通过GPS进行定位.(Stm32 code based aircraft, with a remote control can be achieved on aircraft flight control, can be located by GPS.)
- 2014-05-08 16:16:09下载
- 积分:1
-
elgamal
c++实现elgamal非对称密码加解密(C++ implementation of asymmetric encryption and decryption of ElGamal)
- 2021-04-19 18:08:50下载
- 积分:1
-
TCP_IP-Illustrated-Volume-I
TCP_IP Illustrated Volume I.chm
- 2012-05-21 14:54:11下载
- 积分:1
-
8df5833b7339
win32 SDK 方式实现拦截系统关机(Win32 SDK)
- 2013-09-16 14:11:26下载
- 积分:1
-
C#复习题
c#复习题练习,通过本练习题可以进一步巩固c#相关知识结构。(C# review exercises, through this exercise can further consolidate the knowledge structure of c#.)
- 2020-06-21 00:20:01下载
- 积分:1
-
Poplistmenu
此文件可以实现在Mtk平台手机上的类似于 Nokia弹出式菜单的源代码,属于自写;(This document can be achieved in Mtk platform Nokia phones on the pop-up menu similar to the source code, are self-written )
- 2009-06-30 12:38:15下载
- 积分:1
-
class5
说明: keil 实现基于STC89C52的串口通信,通过串口调试助手与protues联合仿真可进行现象观察,适合初学者。(Keil realizes serial communication based on STC89C52. The phenomenon can be observed through the joint simulation of serial debugging assistant and protocols, which is suitable for beginners.)
- 2020-06-10 19:11:02下载
- 积分:1