摘要:
双击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... 阅读全文
摘要:
引用中要有using System.IO;这是必须的!做个按钮,添加事件,改一下引用的数据表名即可 SaveFileDialog saveFileDialog = new SaveFileDialog(); saveFileDialog.Filter = "Execl files (*.xls)|*.xls"; saveFileDialog.FilterIndex = 0; saveFileDia... 阅读全文
摘要:
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... 阅读全文
摘要:
using System; using System.Data; using System.Data.SqlClient; using System.Data.SqlTypes; using Microsoft.SqlServer.Server; public partial class StoredProcedures { /// <summary> /// 导出数据 /// ... 阅读全文