摘要: 双击label下的图后,添加代码 private void pictureBox1_Paint(object sender, PaintEventArgs e) { foreach (Control C in this.Controls) { if (C is Label) { Label L = (Label)C; L.Visible = false; e.Graphics.DrawString... 阅读全文
posted @ 2010-03-21 22:20 牛博 阅读(265) 评论(0) 推荐(1) 编辑
摘要: 引用中要有using System.IO;这是必须的!做个按钮,添加事件,改一下引用的数据表名即可 SaveFileDialog saveFileDialog = new SaveFileDialog(); saveFileDialog.Filter = "Execl files (*.xls)|*.xls"; saveFileDialog.FilterIndex = 0; saveFileDia... 阅读全文
posted @ 2010-02-10 22:07 牛博 阅读(351) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;using Microsof... 阅读全文
posted @ 2010-02-04 16:27 牛博 阅读(416) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Data; using System.Data.SqlClient; using System.Data.SqlTypes; using Microsoft.SqlServer.Server; public partial class StoredProcedures { /// <summary> /// 导出数据 /// ... 阅读全文
posted @ 2010-01-28 10:34 牛博 阅读(259) 评论(0) 推荐(0) 编辑