资源简介
windows form 窗体的GDI+使用,
根据数据库内容生成折线,树状,扇形图.

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;
namespace WindowsFormsApplication1
{
class DataAccesss
{
private string str_con = “server=.;database=student;uid=sa;pwd=123456;“;
SqlConnection con;
SqlCommand cmd;
SqlDataAdapter da;
DataSet[] DsArr = new DataSet[10] { new DataSet()new DataSet()new DataSet()new DataSet()new DataSet()new DataSet()new DataSet()new DataSet()new DataSet()new DataSet()};
public DataTable Show(string sqlint count)
{
DataTable dt = new DataTable();
try
{
if (sql == null) return dt;
con = new SqlConnection(str_con);
da = new SqlDataAdapter(sql con);
da.Fill(DsArr[count]);
dt = DsArr[count].Tables[0];
}
catch (Exception){}
return dt;
}
public bool ExecuteNonQuery(string sql)
{
con = new SqlConnection(str_con);
con.Open();
cmd = new SqlCommand(sql con);
if (cmd.ExecuteNonQuery() != 0)
{
con.Close();
return true;
}
else
{
con.Close();
return false;
}
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-03-18 13:12 GDI+\
目录 0 2017-03-18 13:12 GDI+\WindowsFormsApplication1\
目录 0 2017-03-18 13:12 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\
文件 1150 2017-03-18 14:38 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\DataAccesss.cs
文件 6167 2017-03-21 13:00 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\Form1.Designer.cs
文件 12180 2017-03-21 13:01 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs
文件 5817 2017-03-21 13:00 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\Form1.resx
文件 2728 2017-03-21 12:42 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\Form2.cs
文件 2869 2017-03-21 12:42 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\Form2.designer.cs
文件 5817 2017-03-21 12:42 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\Form2.resx
文件 439 2017-03-21 13:01 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\Program.cs
目录 0 2017-03-18 13:12 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\Properties\
文件 1398 2017-03-18 13:12 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\Properties\AssemblyInfo.cs
文件 2551 2017-03-18 13:12 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\Properties\Resources.Designer.cs
文件 5612 2017-03-18 13:12 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\Properties\Resources.resx
文件 1032 2017-03-18 13:12 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\Properties\Settings.Designer.cs
文件 249 2017-03-18 13:12 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\Properties\Settings.settings
文件 4053 2017-03-21 12:41 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\WindowsFormsApplication1.csproj
目录 0 2017-03-18 13:12 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\bin\
目录 0 2017-03-18 13:12 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\
文件 21504 2017-03-21 13:02 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe
文件 38400 2017-03-21 13:02 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb
文件 11600 2017-03-21 13:02 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe
文件 490 2010-03-17 22:39 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.manifest
目录 0 2017-03-18 13:12 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\obj\
目录 0 2017-03-18 13:12 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\
目录 0 2017-03-18 13:12 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\
文件 7473 2017-03-20 21:12 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
文件 6329 2017-03-21 13:02 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 548 2017-03-21 13:02 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\GenerateResource.read.1.tlog
文件 1302 2017-03-21 13:02 GDI+\WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\GenerateResource.write.1.tlog
............此处省略12个文件信息
- 上一篇:学生选课系统带数据库 SSM
- 下一篇:蓝牙配对上位机
相关资源
- AE开发Windows最短路径分析
- Xamarin forms 手势事件
-
Windows em
bedded Compact 2013 应用开发调 - 黑苹果硬件兼容检测和查询软件
- 最新版TTF16.OCX Formula One v. 6.1.6.2 控件
- Uninstall_Cortana_WINCLIENT.CN.rar
- VMware65_SLP_DeLLSLIC2.1
- Windows异步套接字网络编程
- WINDOWS98启动盘镜像Win98.IMA
- 仿windows记事本
- Winform倒计时器
- windows7用的,非常漂亮的透明计时器
- WinForm属性编辑 propertyGrid示例 仿wind
- Winform调用系统的剪切,复制,粘贴文
- windows下制作macOS安装U盘,绝对简单好
- keil vcom windows 7 64bit 驱动
- windows ce 系统的GPIO驱动程序
- TCP 发包工具(windows)
- 微软的可以删除系统卸不干净的软件
- windows下生成MD5值的工具(WinMD5)
- windows cygwin ns2安装步骤
- winform跨窗体传值
- WinAPI 函数库(大全)
- 解决在Windows XP SP2下不能显示验证码的
- 加快Windows XP操作系统开机速度
- The Impact of ETC System on Safety Performance
- Furan-BDOPV Donor-Acceptor Polymers with Plana
- Thermal stability and glass-forming ability of
- Windows 1.0 软盘镜像
- 超强内存卡格式化工具uFormat
评论
共有 条评论