-
Sep 13th, 2023, 03:56 PM
#1
Thread Starter
Frenzied Member
[RESOLVED] DateTimePicker not binding to My.Settings
I added a DateTimePicker. I bound the Value property to a Application Setting of type Date. I set a default value of 2000-01-01. I run the program and it displays the current date and time. If I change the date and close the program gracefully, the value isn't saved and in My.Settings is is still the default value.
How to I bind the value to a setting?
What am I missing?
Thanks!
-
Sep 13th, 2023, 04:02 PM
#2
Thread Starter
Frenzied Member
Re: DateTimePicker not binding to My.Settings
Update. In a test program I got it to bind to the setting, but it displays the current day instead of the value.
-
Sep 13th, 2023, 04:05 PM
#3
Thread Starter
Frenzied Member
Re: DateTimePicker not binding to My.Settings
Disregard. I discovered it needs to be checked.
-
Sep 13th, 2023, 04:21 PM
#4
Thread Starter
Frenzied Member
Re: [RESOLVED] DateTimePicker not binding to My.Settings
Now I still don't get it. I want to start it as unchecked. So it defaults to the current date and time in the display. If I check the box, it then saves that value to the Settings overwriting the one value I want bound. And ideas?
-
Sep 13th, 2023, 09:57 PM
#5
Re: [RESOLVED] DateTimePicker not binding to My.Settings
I don't think you're providing us with all the relevant information. You don't mention anything about checking the control until post #3 but a DateTimePicker doesn't display a check box by default. Please provide a list of steps we can follow to reproduce your issue.
Tags for this Thread
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
|