使用C#在Windows Forms应用程序中的两个datetimepicker之间进行验证 [英] Validation between two datetimepickers in Windows Forms Application using C#

查看:73
本文介绍了使用C#在Windows Forms应用程序中的两个datetimepicker之间进行验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的表单中有一个StartDateTime和EndtDateTime选择器.

根据选定的日期,我必须计算总小时数,同时还要验证开始日期不能大于结束日期.

那么,该怎么做.我必须使用哪个事件?

请对此有任何帮助.

谢谢,
Balu

I have a StartDateTime and EndtDateTime Pickers in my Forms.

Based on selected date i have to calculate total hours and also same time I have to validate Startdate cannot be greaterthan end date.

So,how to do this.which event i have to use?

Please help if any know about this.

thanks,
Balu

推荐答案

您应该已经对此进行了搜索.任何方式都可以在这里查看:

http://stackoverflow.com/questions/5564516/validate-to-make-sure-time-difference-inside-2-hours [
You should have googled this. Any way check out here:

http://stackoverflow.com/questions/5564516/validation-to-make-sure-time-difference-is-inside-2-hours[^]


这篇关于使用C#在Windows Forms应用程序中的两个datetimepicker之间进行验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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