- 博客(9)
- 收藏
- 关注
原创 可设置空值(Nullable)的DateTimePicker
由于WinForm自带的DateTimePicker不能设置空值(Null),所以我基于原来的DateTimePicker做了扩展。若有bug,可反馈,我再修改。using System;using System.ComponentModel;using System.Windows.Forms;namespace WinFormTest{ public cl
2015-06-18 22:29:32
644
原创 js实现重复的排列组合
function rp(arr, count) { var result = []; var cal = function(r, a, c) { if (c == 0) { result.push(r); return; } for (var i = 0; i < a.length; i
2015-01-01 15:38:48
1536
转载 在XML序列化时去除默认命名空间xmlns:xsd和xmlns:xsi
可使用以下代码://Create our own namespaces for the outputXmlSerializerNamespaces ns = new XmlSerializerNamespaces ();//Add an empty namespace and empty valuens.Add ("", "");//Create the seriali
2012-01-27 14:37:09
3493
转载 [ASP.NET]利用List的Sort()、Find()、FindAll()、Exist()來解決一些問題
最近寫案子常常用到List,這個東西還真好用因為它有下列東西:List.Sort() → 排序TList.Find() → 找出一個TList.FindAll() →找出多個TList.Exist() →判斷T是否存在小弟就寫個範例介紹這些東西吧..GenericList.aspx0102
2012-01-26 22:33:17
2515
转载 C#中使用Split分隔字符串的技巧
C#中使用Split分隔字符串的技巧 作者:icech整理 发布时间:2009-8-18 16:12:13 文章来源:西部E网 在分割字符串的时候我们常常会用到Split,下面我们就来学习一下分割字符串的技巧和方法。 1、使用String.Split单字符分割 String.Split方法 命名空间:System 程序集:mscorlib(在 mscorlib.dll 中) 返回的字符串数组包含此
2012-01-25 02:17:24
918
转载 Winform窗口渐进打开关闭效果实现
在Load中调用ShowFXCenter函数,在FormClosing中调用HideFXCenter函数: private void Form_Load(object sender, EventArgs e) { FormShowHideFx.ShowFXCenter(this.Handle, 300); }
2012-01-24 17:09:27
448
转载 CREATE TABLE (SQL Server Compact)
创建新的 Microsoft SQL Server Compact 表。 语法CREATE TABLE table_name ( { | } [ ,...n ] ) ::= { column_name data_type } [ { DEFAULT constant_expression | [ ID
2012-01-24 15:25:48
823
转载 short、int、long与byte之间的转换工具类
/** * 各基础类型与byte之间的转换 * @author shanl * */ public class Utility { /** * 将short转成byte[2] * @param a * @return */ public static byte[] short2Byte(short a){
2012-01-24 14:12:13
376
转载 GridView 和DataGrid区别
一、GridView和DataGrid的异同 GridView 是 DataGrid的后继控件,在.net framework 2 中,虽然还存在DataGrid,但是GridView已经走上了历史的前台,取代DataGrid的趋势已是势不可挡。GridView和 DataGrid功能相似,都是在web页面中显示数据源中的数据,将数据源中的一行数据,也就是一条记录,显示为在web页面上输出表格中的
2009-03-05 12:04:00
317
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人