datatimepicker问题
两个datatimepicker控件当点击第一个控件选择日期后,第二个控件自动加一年填入 --------------------编程问答-------------------- 第2个控件设置只读第1个控件valuechange事件里加
datatimepicker2.value=dateadd(y,1,datatimepicker1.value) --------------------编程问答--------------------
--------------------编程问答--------------------
Private Sub DateTimePicker1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DateTimePicker1.ValueChanged
DateTimePicker2.Value = DateTimePicker1.Value.AddYears(1)
End Sub
你试试看
我没怎么研究过 My97 --------------------编程问答-------------------- 正解
补充:.NET技术 , VB.NET