10 2009 档案
摘要: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.Thr...
阅读全文
摘要:一、BackGroundWorker工作步骤1.向窗体中拖入一个BackGroundWorker控件。2.在某个方法或者事件中,调用BackGroundWorker的RunWorkerAsync()方法。3.该方法为异步操作,将自动引发BackGroundWorker的DoWork事件。4.调用ReportProgress方法将引发ProgressChanged事件。二、一个使用了BackGrou...
阅读全文
摘要:1.webform 在DataGridView的RowDataBound事件裡判斷並修改: if(e.Row.Cells[n].Text== "0 ") { e.Row.Attributes.Add( "bgColor ", "red "); } else if(e.Row.Cells[n].Text> "500 ") { e.Row.Attributes.Add( "bgColor "...
阅读全文