随笔分类 -  Winform

上一页 1 2 3 4 下一页

WinFrom - DataGridView控件右键选中记录并弹出菜单
摘要:dataGridView右键菜单并选中该行程序代码:private void dataGridView1_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e) { if (e.Button =... 阅读全文

posted @ 2015-07-01 14:36 ultrastrong 阅读(427) 评论(0) 推荐(0)

MSSQL - 多表查询
摘要: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... 阅读全文

posted @ 2015-06-29 20:49 ultrastrong 阅读(651) 评论(0) 推荐(0)

C#、WinForm、ASP.NET - Md5散列加密
摘要:MD5值概念解释:转载自:http://free0007.iteye.com/blog/2047163所 谓MD5,即"Message-Digest Algorithm 5(信息-摘要算法)",它由MD2、MD3、MD4发展而来的一种单向函数算法(也就是HASH算法),它是国际著名的公钥加密算法标准... 阅读全文

posted @ 2015-06-28 19:27 ultrastrong 阅读(407) 评论(0) 推荐(0)

C#、WinForm、ASP.NET - SQLHelper.cs
摘要:SQLHelper.csusing System;using System.Data;using System.Configuration;using System.Data.SqlClient;namespace DAL{ public class SQLHelper { ... 阅读全文

posted @ 2015-06-28 13:52 ultrastrong 阅读(438) 评论(0) 推荐(0)

Winform - 判断GroupBox控件中的TextBox文本框是不是为空
摘要:foreach (Control item in this.groupBox2.Controls) { if (item is TextBox) { if (item.Text.T... 阅读全文

posted @ 2015-06-25 12:50 ultrastrong 阅读(388) 评论(0) 推荐(0)

MSSQL、C# 、Winform、ASP.NET - 数据库备份与还原模块
摘要:数据库备份还原类:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;//应用相应的命名空间using System.Window... 阅读全文

posted @ 2015-06-24 11:35 ultrastrong 阅读(420) 评论(0) 推荐(0)

C# / MSSQL / WinForm / ASP.NET - SQLHelper中返回SqlDataReader数据
摘要:/// /// Execute a SqlCommand that returns a resultset against the database specified in the connection string /// using the pr... 阅读全文

posted @ 2015-06-13 11:41 ultrastrong 阅读(432) 评论(0) 推荐(0)

WinForm - ListView点击空白事件
摘要:有时看似很小的一个问题却可能困扰我们许久,比如ListView这个问题,其Click事件只是在有选中项的时候才触发,点击其空白处(无选中项)是不会触发Click事件的,找了许久才终于找到解决这个问题的“良方” int xPos, yPos; /// ///... 阅读全文

posted @ 2015-06-10 11:46 ultrastrong 阅读(876) 评论(0) 推荐(0)

C# - 使用皮肤
摘要:运行效果:项目目录结构:主窗体代码: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing... 阅读全文

posted @ 2015-05-22 08:29 ultrastrong 阅读(745) 评论(0) 推荐(0)

C# - InnerList
摘要:运行效果:代码: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace InnerList 7 { 8 class Progra... 阅读全文

posted @ 2015-05-19 21:48 ultrastrong 阅读(630) 评论(0) 推荐(0)

C# - 序列化和反序列化
摘要:序列化与反序列化一个自定义的字段:运行效果:代码: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 //引入相应命名空间 7 using System... 阅读全文

posted @ 2015-05-19 21:36 ultrastrong 阅读(294) 评论(0) 推荐(0)

C# - MemoryStream
摘要:代码: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Lin... 阅读全文

posted @ 2015-05-19 21:17 ultrastrong 阅读(383) 评论(0) 推荐(0)

C# - 线程操作
摘要:代码: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 //引用相应命名... 阅读全文

posted @ 2015-05-19 17:07 ultrastrong 阅读(184) 评论(0) 推荐(0)

C# - 读写INI文件
摘要:运行效果:代码: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using... 阅读全文

posted @ 2015-05-19 15:05 ultrastrong 阅读(407) 评论(0) 推荐(0)

NHibernate - HQL - 添加和更改
摘要:添加: 1 /// 2 /// 等待乙方做出回应 A 3 /// 4 private void button2_Click_1(object sender, EventArgs e) 5 { 6 ... 阅读全文

posted @ 2015-05-18 12:51 ultrastrong 阅读(293) 评论(0) 推荐(0)

下载工具
摘要:运行效果:项目结构图:DownLoad.cs文件代码: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Dra... 阅读全文

posted @ 2015-05-17 13:31 ultrastrong 阅读(240) 评论(0) 推荐(0)

StreamWrite-StreamRead 读写文本文件
摘要: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... 阅读全文

posted @ 2015-05-13 22:24 ultrastrong 阅读(467) 评论(0) 推荐(0)

FileStream -- 复制文件
摘要: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... 阅读全文

posted @ 2015-05-13 21:29 ultrastrong 阅读(250) 评论(0) 推荐(0)

NHibernate之映射文件配置说明
摘要:转载自:http://www.cnblogs.com/kissdodog/archive/2013/02/21/2919886.html 阅读全文

posted @ 2015-05-09 12:41 ultrastrong 阅读(165) 评论(0) 推荐(0)

Web Service 部署到IIS服务器
摘要:转载自:http://blog.csdn.net/yexuanbaby/article/details/9029605 阅读全文

posted @ 2015-05-07 18:12 ultrastrong 阅读(218) 评论(0) 推荐(0)

上一页 1 2 3 4 下一页