C#实现数据图表
来源:互联网 发布:简单三维动画制作软件 编辑:程序博客网 时间:2024/05/21 07:00
using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Drawing.Drawing2D; using System.Drawing.Imaging; using System.Data.OleDb; namespace DbChart { /// /// Form1 的摘要说明。 /// public class Form1 : System.Windows.Forms.Form { /// /// 必需的设计器变量。 /// private System.ComponentModel.Container components = null; private Bitmap MyBitmap=new Bitmap(500,500); private Graphics MyGrp= null; private int [] DbScore; private string [] DbName; public Form1() { // // Windows 窗体设计器支持所必需的 // InitializeComponent(); // // TODO: 在 InitializeComponent 调用后添加任何构造函数代码 // } /// /// 清理所有正在使用的资源。 /// protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region Windows 窗体设计器生成的代码 /// /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// private void InitializeComponent() { // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.ClientSize = new System.Drawing.Size(505, 430); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "Form1"; this.Text = "Visual C#实现数据图表"; this.Load += new System.EventHandler(this.Form1_Load); this.Paint += new System.Windows.Forms.PaintEventHandler(this.Form1_Paint); } #endregion /// /// 应用程序的主入口点。 /// [STAThread] static void Main() { Application.Run(new Form1()); } private void getData(string dataid,string dataName,string tableName) { try { const string dataConn="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=db.mdb"; OleDbConnection conn= new OleDbConnection(dataConn); conn.Open(); string sql="select * from "+tableName; OleDbCommand cmd = new OleDbCommand(sql,conn); DataSet ds = new DataSet(); OleDbDataAdapter adapter = new OleDbDataAdapter(cmd); adapter.Fill(ds); DbScore=new int[ds.Tables[0].Rows.Count]; DbName=new string[ds.Tables[0].Rows.Count]; for(int i=0;i
- C#实现数据图表
- ASP.NET实现数据图表
- ASP.NET实现数据图表
- ASP.NET实现数据图表
- 实现数据的图表统计
- asp.net实现数据图表
- fusioncharts实现数据动画图表
- Android实现动态数据图表
- ASP.NET实现数据图表a
- ASP.NET实现数据图表1
- ASP.NET实现数据图表b
- ASP.NET实现数据图表c
- 使用ECharts实现数据图表分析
- ECharts实现数据图表分析及代码
- C#图表
- C#让Excel中数据自动生成图表
- 图表实现
- asp.net下使用C#实现动态绘制图表
- #pragma详细解释
- 2007.05.22 打造检测率最高的去红眼算法
- oracle中用存储过程加密一段字符串(3des算法)
- apache在windows xp下的安装
- VS2005中文输入法自动转换为全角的两种解决方法
- C#实现数据图表
- 跳蚤的启示!
- 使用UL 列表结构建立横向导航栏需要注意的问题
- 正则表达式简单应用
- 关于wcstombs的问题(不支持中文)
- gcc开发环境设置与测试
- asp.net2.0学习历程 菜鸟到中级程序员的飞跃 转自清清月儿
- CORBA Programming with TAO - 4.Basic Functions(常用基本方法解析)
- 在Access中存取图片