摘要:首先工具箱报表下拖入窗体CrystalReportViewer 控件然后 添加新项 点击 Reporting 创建Crystal报表 backReport.SetDataSource(dt);//数据传递给报表引擎 crvBackListCard.ReportSource = backReport;//将报表设置为绑定到CrystalReportViewer控件
阅读全文
摘要:/// <summary> /// 定制文本框可随便输入字符串 /// </summary> /// <param name="textBoxs"></param> /// <param name="maxLength"></param> public static void MadeStringTextBox(TextBox...
阅读全文
摘要:解决办法:1.if (dtedit.Rows[k][i] == DBNull.Value) num = 0; else num = Convert.ToInt32(dtedit.Rows[k][i]);2.在读取数据库数据时判断.如"Select IsNull(score,0) from score" 先把为null的数据表示为03. public static int ParseInt(obje...
阅读全文
摘要:public partial class Form1 : Form { Thread thread=null; int n = 0;bool severIsRun=false;//用来村示线程是否启动private delegate void myDelegate(string str);//定义委托private void setRich(string str)//委托 { if (this.t...
阅读全文