C#.NET中的日历验证 [英] Calender Validation in C#.NET

查看:85
本文介绍了C#.NET中的日历验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我已经在表单中添加了日历,并且希望它今天不选择以前的日期表单,对于另一个日历,也不要今天选择未来的日期表单.
请通过在C#中提供我的项目代码来帮助我..

Hi I have added a calender in my form and i want that it does not select the previous dates form today and also for another calender it does not select the future date form today.
Please Help me by giving the code in C# i need it for my project..

推荐答案

假设您是指Windows窗体MonthCalendar [
Assuming that you mean the Windows Forms MonthCalendar[^], take a look at the MinDate and MaxDate properties.


这篇关于C#.NET中的日历验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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