您的位置:首页 > 编程语言

可以解决DateTimePicker 无法为DBNull的代码.已经测试通过,收藏

2008-05-21 09:11 453 查看
转自 http://www.codeguru.com/csharp/csharp/cs_controls/custom/article.php/c9645/

using System;

using System.ComponentModel;

using System.Globalization;

using System.Runtime.InteropServices;

using System.Threading;

using System.Windows.Forms;

// Copyright (c) 2005 Claudio Grazioli, http://www.grazioli.ch
//

// This implementation of a nullable DateTimePicker is a new implementation

// from scratch, but it is based on ideas I took from this nullable

// DateTimePickers:

// - http://www.omnitalented.com/Blog/PermaLink,guid,9ee757fe-a3e8-46f7-ad04-ef7070934dc8.aspx
// from Alexander Shirshov

// - http://www.codeproject.com/cs/miscctrl/Nullable_DateTimePicker.asp
// from Pham Minh Tri

//

// This code is free software; you can redistribute it and/or modify it.

// However, this header must remain intact and unchanged. Additional

// information may be appended after this header. Publications based on

// this code must also include an appropriate reference.

//

// This code is distributed in the hope that it will be useful, but

// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY

// or FITNESS FOR A PARTICULAR PURPOSE.

//

namespace ProjectMentor.Windows.Controls
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐