[RESOLVED] DateTimePicker Checked property VB.NET 2003
Hi, :rolleyes:
I don't know why, but the dtp control is not allowing me to uncheck the checkbox within the control. I've tried many things like:
VB Code:
dtpFromDate.Visible = True
dtpToDate.Visible = True
dtpFromDate.Value = Date.Now
dtpFromDate.Checked = False
dtpToDate.Value = Date.Now
dtpToDate.Checked = False
During this specific event, a user has selected an different option that "resets" the form. Since I am running an SQL statement based on the items selected, I wanted to start out with the DTP being unchecked by default so that the user doesn't accidently include the dates in the SQL query.
Thank you for your help!
Re: DateTimePicker Checked property VB.NET 2003
try this
VB Code:
dtpToDate.Visible = True
dtpToDate.Checked = True
dtpToDate.Value = Date.Now
dtpToDate.Checked = False
Re: DateTimePicker Checked property VB.NET 2003
Wow!
Thanks! That worked. Not quite sure why, but, hey ... it works! :lol:
I sure appreciate it. :D
NLISI