我如何禁用一个DateTimePicker控制一些日期? [英] How do I disable some dates on a DateTimePicker control?

查看:564
本文介绍了我如何禁用一个DateTimePicker控制一些日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有可能禁用一个DateTimePicker选择的日期,使用户无法选择它们。我知道它有可能在网络形式,但在Windows窗体即时通讯无法做到this.how我能做到这一点。

I was wondering is it possible to disable selected dates in a DateTimePicker, so that user cannot select them. i know its possible in web forms but in windows forms im unable to do this.how can i achieve this.

推荐答案

开发前preSS控制通常是非常灵活的,并从的此支持文章,你可以达到你想要做自己的 DateEdit 控制什么。

Developer Express controls are usually very flexible and judging from this support article you can achieve what you want to do with their DateEdit control.

控件集合,可以从以下位置获得:超过60个免费控件从DevEx preSS

The control collection can be obtained from the following location: Over 60 Free Controls from DevExpress.

不要忘记阅读EULA。

Don't forget to read the EULA.

这篇关于我如何禁用一个DateTimePicker控制一些日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆