上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: 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.Runtime.InteropServices;using System.Diagnostics;using System.IO;using System.Data.SqlClient;namespace temp{ .. 阅读全文
posted @ 2013-11-28 15:51 JasonGu0 阅读(1169) 评论(0) 推荐(0)
摘要: SELECT ROW_NUMBER() OVER (ORDER BY intid ASC) AS rowid,buyerinfo,buyername,address FROM tblbuyermsg 阅读全文
posted @ 2013-11-28 13:58 JasonGu0 阅读(1271) 评论(0) 推荐(0)
摘要: delete from tblBuyerMsg where (buyerinfo) in (select buyerinfo from tblBuyerMsg group by buyerinfo having count(*) > 1)AND buyername in (select buyername from tblBuyerMsg group by buyername having count(*)>1)AnD address in (select address from tblBuyerMsg group by address having count(*)>1) 阅读全文
posted @ 2013-11-27 10:35 JasonGu0 阅读(575) 评论(1) 推荐(0)
摘要: 首先定义一个接口类:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace MY_Factory{ /// /// interface 是接口,实现接口 /// public interface ICoat { /// /// 方法1 /// void GetYourCoat(); /// /// 方法2 /// v... 阅读全文
posted @ 2013-11-26 14:14 JasonGu0 阅读(512) 评论(0) 推荐(0)
摘要: 这里,我是自定义了一个类OverrideTxt继承了System.Windows.Forms.TextBoxusing System;using System.Collections.Generic;using System.Linq;using System.Text;namespace WindowsFormsApplication1{ public class OverrideTxt : System.Windows.Forms.TextBox { protected override void OnTextChanged(EventArgs e) ... 阅读全文
posted @ 2013-11-26 13:54 JasonGu0 阅读(2068) 评论(0) 推荐(0)
摘要: void textBox2_TextChanged(object sender, EventArgs e) { this.textBox2.SelectionStart = this.textBox2.TextLength; this.textBox2.SelectionLength = 0; this.textBox2.ScrollToCaret(); } 阅读全文
posted @ 2013-11-19 13:33 JasonGu0 阅读(339) 评论(0) 推荐(0)
摘要: 先自定义一个类 继承DataGridViewTextBoxCellusing System;using System.Collections.Generic;using System.Text;using System.Windows.Forms;using System.Drawing;namespace com.Threes.CustomControl{ public class DataGridViewBooleanCell : DataGridViewTextBoxCell { protected override void Paint(Graphics gr... 阅读全文
posted @ 2013-11-19 11:12 JasonGu0 阅读(1097) 评论(0) 推荐(0)
摘要: private delegate void FlushClient();//代理 private void ThreadFunction() { if (this.textBox1.InvokeRequired) { FlushClient fc = new FlushClient(ThreadFunction); this.Invoke(fc); } else { ... 阅读全文
posted @ 2013-11-18 09:58 JasonGu0 阅读(427) 评论(0) 推荐(0)
摘要: 先定义一个具有返回值(List)的方法 List fun(ref List intcount, int a) { if (1 == a) return intcount; else { List ii = new List(); ii.Add(a - 1); intcount.AddRange(ii); return fun(ref intcount, a - 1); } ... 阅读全文
posted @ 2013-11-12 09:42 JasonGu0 阅读(1162) 评论(0) 推荐(0)
摘要: DataTable dt=new Datatable();//先把数据读取到dt里面。System.Data.SqlClient.SqlBulkCopy copy = new System.Data.SqlClient.SqlBulkCopy("连接字符串"); copy.DestinationTableName = "表名"; copy.BulkCopyTimeout = 600; copy.BatchSize = 1000; copy.WriteToServer(dt); 阅读全文
posted @ 2013-11-08 14:35 JasonGu0 阅读(317) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页