我放了两个datetimepicker控件 一个是到达日期,一个是离开日期,如何写代码来保证离开日期必须在到来日期之后。谢谢~
解决方案 »
- C# WINFORM 获取摄像头的帧
- C# winform 状态栏控件System.ArgumentOutOfRangeException: 索引超出范围
- C# 图片打印文字质量问题
- math.round()问题
- 如果RichTextBox绑定一个字段,失去焦点后字体的格式都会丢失,这是什么原因?
- C#里面怎么调用.h头文件和.lib库文件?或者C#里面调用由VB编写的DLL
- 关于listbox问题。
- C#如何实现Container 控件的拖拽功能
- 想深学UML网上现有的设计好的资料好少,想参考都没办法
- 比较了一下c#和java
- 字符串数组比较的问题
- TableAdapter 的几个方法疑问?
web建议使用 My97DatePicker
winform自己写程序判断
{
MessageBox.Show("不能大");
}
{
dateTimePicker1.MaxDate = dateTimePicker2.Value;
} private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
{
dateTimePicker2.MinDate = dateTimePicker1.Value;
}
{
this.dtpEnd.Value=this.dtpStart.Value;
}
{
if (this.dateTimePicker1.Value.Date > this.dateTimePicker2.Value.Date)
this.dateTimePicker2.Value="";
}