如何将datetimepicker值发送到文本框,仅在单击日期,特定日期或月份时

时间:2016-06-11 15:52:23

标签: vb.net winforms datepicker datetimepicker

每当我双击datetimepicker时,它会自动将其值发送到文本框。现在,我想在文本框中发送DateTimePicker的值,只有当我点击该日期,特定日期或年份时?

enter image description here

这是我的vb.net代码:

Private Sub DateTimePicker1_DOB_CloseUp(sender As Object, e As EventArgs) Handles DateTimePicker1_DOB.CloseUp
   TextBox1_Date.Text = DateTimePicker1_DOB.Text
End Sub

0 个答案:

没有答案