|
-
Jun 22nd, 2006, 09:11 AM
#1
Thread Starter
Member
[RESOLVED] DateTimePicker Checked property VB.NET 2003
Hi,
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!
-
Jun 22nd, 2006, 10:35 AM
#2
Re: DateTimePicker Checked property VB.NET 2003
try this
VB Code:
dtpToDate.Visible = True
dtpToDate.Checked = True
dtpToDate.Value = Date.Now
dtpToDate.Checked = False
-
Jun 22nd, 2006, 11:00 AM
#3
Thread Starter
Member
Re: DateTimePicker Checked property VB.NET 2003
Wow!
Thanks! That worked. Not quite sure why, but, hey ... it works!
I sure appreciate it.
NLISI
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|