摘要: 方法 1:控件 checkedComboBoxEdit///清空选项checkedComboBoxEdit1.Properties.Items.Clear();///添加选项checkedComboBoxEdit1.Properties.Items.Add("选项1-name", "选项1-desc... 阅读全文
posted @ 2015-11-19 15:44 人生为卒 阅读(4141) 评论(1) 推荐(0)
摘要: dll:// C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll方法 1: /// /// 是否能 Ping 通指定的主机 ... 阅读全文
posted @ 2015-11-11 17:01 人生为卒 阅读(2420) 评论(0) 推荐(0)
摘要: Environment.NewLine字段a+Environment.NewLine+字段b 运行=字段a字段b 阅读全文
posted @ 2015-11-11 11:25 人生为卒 阅读(178) 评论(0) 推荐(0)
摘要: 使用gridView1_CellValueChanged 事件private void gridView1_CellValueChanged(object sender, DevExpress.XtraGrid.Views.Base.CellValueChangedEventArgs e) ... 阅读全文
posted @ 2015-11-10 12:00 人生为卒 阅读(671) 评论(0) 推荐(0)
摘要: case 字段 when 值1 then 替代值2 when 值2 then 替代值2 end as 字段eg。 select a.*,b.user_nm,Case a.status WHEN 1 THEN '可用' ELSE '不可用' END as status1, case a.cls_typ... 阅读全文
posted @ 2015-11-09 11:46 人生为卒 阅读(143) 评论(0) 推荐(0)
摘要: ///设置comboxedit编辑模式 cbxTypeNo.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; 阅读全文
posted @ 2015-11-09 11:19 人生为卒 阅读(245) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Data.SqlClient;using System.Drawing;using Sys... 阅读全文
posted @ 2015-11-05 10:47 人生为卒 阅读(1081) 评论(0) 推荐(0)
摘要: 在命令窗口输入 shutdown -s -t 7200 【1小时=3600秒, 这里设置7200就等于两个小时之后电脑自动关机】(有空格)取消自动关机命令:shutdown -a成功提示 阅读全文
posted @ 2015-11-03 21:40 人生为卒 阅读(196) 评论(0) 推荐(0)
摘要: http://zhidao.baidu.com/link?url=bgTvGFrn_zu8eR6AzfdfscQ12F5jEqhbWcgxf_kDSuXrQg1O_3zdksyH9hrz0Mn1VD_Nf0SASPO0_8ZjjVOURqv1gZw2wKxAbmiA798JlPC方法 1: vi... 阅读全文
posted @ 2015-11-03 08:52 人生为卒 阅读(307) 评论(0) 推荐(0)
摘要: 转 : http://www.cnblogs.com/zeroone/archive/2012/06/27/2565332.htmlC#读取MySql时,如果存在字段类型为date/datetime时的可能会出现以下问题“Unable to convert MySQL date/time value... 阅读全文
posted @ 2015-10-28 14:18 人生为卒 阅读(190) 评论(0) 推荐(0)