摘要:dataGridView右键菜单并选中该行程序代码:private void dataGridView1_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e) { if (e.Button =...
阅读全文
摘要:SELECT u.UserNumber, u.UserName, c.CarNumber, c.CarName, c.CarEngine, s.BuyLs, s.BuyTimeFROM Tb_Sale as sinner join Tb_User as u ON u.UserNumber = s.U...
阅读全文
摘要:MD5值概念解释:转载自:http://free0007.iteye.com/blog/2047163所 谓MD5,即"Message-Digest Algorithm 5(信息-摘要算法)",它由MD2、MD3、MD4发展而来的一种单向函数算法(也就是HASH算法),它是国际著名的公钥加密算法标准...
阅读全文
摘要:SQLHelper.csusing System;using System.Data;using System.Configuration;using System.Data.SqlClient;namespace DAL{ public class SQLHelper { ...
阅读全文
摘要:foreach (Control item in this.groupBox2.Controls) { if (item is TextBox) { if (item.Text.T...
阅读全文
摘要:数据库备份还原类:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;//应用相应的命名空间using System.Window...
阅读全文
摘要:/// /// Execute a SqlCommand that returns a resultset against the database specified in the connection string /// using the pr...
阅读全文
摘要:有时看似很小的一个问题却可能困扰我们许久,比如ListView这个问题,其Click事件只是在有选中项的时候才触发,点击其空白处(无选中项)是不会触发Click事件的,找了许久才终于找到解决这个问题的“良方” int xPos, yPos; /// ///...
阅读全文
摘要:运行效果:项目目录结构:主窗体代码: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing...
阅读全文
摘要:运行效果:代码: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace InnerList 7 { 8 class Progra...
阅读全文
摘要:序列化与反序列化一个自定义的字段:运行效果:代码: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 //引入相应命名空间 7 using System...
阅读全文
摘要:代码: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Lin...
阅读全文
摘要:代码: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 //引用相应命名...
阅读全文
摘要:运行效果:代码: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using...
阅读全文
摘要:添加: 1 /// 2 /// 等待乙方做出回应 A 3 /// 4 private void button2_Click_1(object sender, EventArgs e) 5 { 6 ...
阅读全文
摘要:运行效果:项目结构图:DownLoad.cs文件代码: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Dra...
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 //添加命名空间 8 using S...
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 //添加命名空间 8 using S...
阅读全文
摘要:转载自:http://www.cnblogs.com/kissdodog/archive/2013/02/21/2919886.html
阅读全文
摘要:转载自:http://blog.csdn.net/yexuanbaby/article/details/9029605
阅读全文