摘要: private void btnFindNext_Click(object sender, EventArgs e) { if (this.bindingSource == null) { return; } PropertyDescriptor property = this.cboProperties.SelectedItem as PropertyDescriptor; if (property == null) { return; } try { if (bindingSource.SupportsSearching) { string find = this.cboFindWhat. 阅读全文
posted @ 2011-05-20 12:56 leslie116 阅读(184) 评论(0) 推荐(0) 编辑
摘要: #region to datatable public DataTable ToTable() { return this.ToTable(null, new string[0]); } public DataTable ToTable(string tableName) { return this.ToTable(tableName, new string[0]); } public DataTable ToTable(string tableName, params string[] columnNames) { if (columnNames == null) { throw new A 阅读全文
posted @ 2011-04-16 15:39 leslie116 阅读(199) 评论(0) 推荐(0) 编辑
摘要: privatevoidbutton1_Click(objectsender,EventArgse){try{DataTabledatatable=this.DataBlockSet.DataSource.Tables["CUSTOMER_ITEMS"];if(datatable!=null){DataTabledest=datatable.Clone();DtsProviderManagermanager=newDtsProviderManager(TransferMode.Import);stringappPath=Application.StartupPath;stri 阅读全文
posted @ 2011-03-24 19:29 leslie116 阅读(199) 评论(0) 推荐(0) 编辑
摘要: Expr1: IIf(IsDate([date111]),Format(CDate([date111]),"yyyy/m/d"),[date111]) 名之赫会议管理系统演示.ppshttp://www.apednn.org/help/1-1.htm 阅读全文
posted @ 2011-03-12 11:53 leslie116 阅读(91) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Collections;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Text;usingSystem.Windows.Forms;namespaceWindowsApplication1{internalclassDBTreeView:TreeView{privateobjectrootValue;privatestringparentMember;privatestringchildMember;privatestringtextMember;pr 阅读全文
posted @ 2011-02-26 21:16 leslie116 阅读(242) 评论(0) 推荐(0) 编辑
摘要: private int i=0;public void Detail1_Format(){ i++; ((TextBox) rpt.Sections["Detail1"].Controls["SER"]).Text=i.ToString();}public void GroupFooter6_Format(){ i=0;} 阅读全文
posted @ 2011-01-06 15:18 leslie116 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 当把VB程式转成.net 时,其座标会经常转换,用下面的程式来解决这个问题.代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--constlongHWND_DESKTOP=0;constintLOGPIXELSX=88;constintLOGPIXEL... 阅读全文
posted @ 2010-10-25 22:02 leslie116 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 当Sqlserver上有很多Database,要想移动其数据文件的位置时,显得很麻烦,下面的SQL语句会自动生成移动Database文件的SQL语句.代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--declare@db_namenvarchar(2... 阅读全文
posted @ 2010-10-08 07:27 leslie116 阅读(366) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2010-10-06 19:35 leslie116 阅读(266) 评论(0) 推荐(0) 编辑
摘要: public IDataReader GetFunctionInfo(int functionId) { this.PoolConnect(); SqlParameter para = new SqlParameter("@FUNCTION_ID", functionId); return SqlHelper.ExecuteReader(this.Connection, CommandType.T... 阅读全文
posted @ 2010-09-19 17:01 leslie116 阅读(200) 评论(0) 推荐(0) 编辑