I have some DateTimePicker controls. When the user selects a date, I would like to show the Week Commencing date, ie - the monday of the week selected.
In order to assign a Nothing value to a dtp you need to set the .ShowCheckBox property to True and set the .Checked property to False.
This is the only way to "display" a Null date value.
VB Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
DateTimePicker1.ShowCheckBox = True
DateTimePicker1.Checked = False
End Sub
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.