資源簡介
C# WinForm打印程序示例
代碼片段和文件信息
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;
using?System.Data.OleDb;
//Download?by?http://www.codefans.net
namespace?WinFormsPrint
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????private?void?btnSel_Click(object?sender?EventArgs?e)
????????{
????????????string?studentNo?=?txtSel.Text;
????????????string?selectSql?=?“select?*?from?Student?“;
????????????string?connStr?=?“Provider=Microsoft.ACE.OLEDB.12.0;Data?Source=“?+?System.Windows.Forms.Application.StartupPath.ToString().Replace(“bin\\Debug“?“DB\\Student.accdb“);
????????????if?(!string.IsN
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
-----------?---------??----------?-----??----
??????????????3391079????????????????????63
- 上一篇:C# 不規則窗體源代碼w
- 下一篇:C# 結合TXT實現全國城市查詢功能
評論
共有 條評論