上一页 1 2 3 4 5 6 7 ··· 10 下一页

2016年1月9日

C#版SQLHelper.cs类

摘要: usingSystem;usingSystem.Data;usingSystem.Xml;usingSystem.Data.SqlClient;usingSystem.Collections;usingSystem.Configuration;namespaceBookDAL{//////SqlSe... 阅读全文

posted @ 2016-01-09 08:53 连一粝 阅读(418) 评论(0) 推荐(0) 编辑

2016年1月4日

VS调试在Win7(vista系列)操作系统下 HttpListener拒绝访问解决办法

摘要: 一. VS调试在Win7(vista系列)操作系统下 HttpListener无法绑定多个 指定IP、端口问题 来自:http://www.cnblogs.com/ryhan/p/4195693.html 现象:System.Net.HttpListenerException (0x8000... 阅读全文

posted @ 2016-01-04 17:06 连一粝 阅读(937) 评论(0) 推荐(0) 编辑

2015年10月23日

C#中TreeView与数据库绑定

摘要: protected void CreateTreeView() { TreeNode rootNode = new TreeNode(); rootNode.Text = "全部"; rootNode.Value = "... 阅读全文

posted @ 2015-10-23 14:51 连一粝 阅读(795) 评论(0) 推荐(0) 编辑

C#中dataGridView用法集

摘要: SqlConnection conn = new SqlConnection('Server=(local);DataBase=test;User=sa;Pwd=sa');SqlDataAdapter da = new SqlDataAdapter('select * from test',conn... 阅读全文

posted @ 2015-10-23 08:38 连一粝 阅读(565) 评论(0) 推荐(0) 编辑

2015年4月27日

winform-全局异常捕获作用

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Windows.Forms;using JxsFL.CaiGou;using JxsFL.CangKu;using JxsFL.CangKu.Ou... 阅读全文

posted @ 2015-04-27 10:52 连一粝 阅读(391) 评论(0) 推荐(0) 编辑

2015年4月17日

sp_MSforeachtable使用方法

摘要: 1)说明系统存储过程sp_MSforeachtable和sp_MSforeachdb,是微软提供的两个不公开的存储过程,从ms sql 6.5开始。存放在SQL Server的MASTER数据库中。2)参数说明:@command1 nvarchar(2000), --第一条运行的SQL指令@repl... 阅读全文

posted @ 2015-04-17 09:11 连一粝 阅读(178) 评论(0) 推荐(0) 编辑

2015年4月7日

C#数据库操作

摘要: 1、常用的T-Sql语句 查询:SELECT * FROM tb_test WHERE ID='1' AND name='xia' SELECT * FROM tb_test 插入:INSERT INTO tb_test VALUES('xia','123') INSERT INTO tb_test... 阅读全文

posted @ 2015-04-07 09:32 连一粝 阅读(186) 评论(0) 推荐(0) 编辑

2015年3月15日

C# Windows DataGridView 判断CheckBox 选取的方法

摘要: 单行选中foreach (DataGridViewRow dr in this.dataGridView1.Rows) { try { //DataGridViewCheckBoxCell cbx = (DataGridViewCheckBoxCell)dr.Cells[0]; //if ((boo... 阅读全文

posted @ 2015-03-15 16:26 连一粝 阅读(347) 评论(0) 推荐(0) 编辑

C#自动生成年月,绑定到combobox控件

摘要: private void FillYearMonth() { List listDateTime = new List(); DateTime dtStart = Convert.ToDateTime("2015-1"); //开始时间 DateTime dtEnd = DateTime.Now;/... 阅读全文

posted @ 2015-03-15 09:41 连一粝 阅读(269) 评论(0) 推荐(0) 编辑

2015年3月10日

dataGridView使用指南系列一、回车换行或换列完美解决方案

摘要: bool enterkey; protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { enterkey = false; if (keyDat... 阅读全文

posted @ 2015-03-10 13:49 连一粝 阅读(283) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 ··· 10 下一页

导航