Results 1 to 5 of 5

Thread: [RESOLVED] DateTimePicker not binding to My.Settings

  1. #1

    Thread Starter
    Frenzied Member cory_jackson's Avatar
    Join Date
    Dec 2011
    Location
    Fallbrook, California
    Posts
    1,100

    Resolved [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!

  2. #2

    Thread Starter
    Frenzied Member cory_jackson's Avatar
    Join Date
    Dec 2011
    Location
    Fallbrook, California
    Posts
    1,100

    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.

  3. #3

    Thread Starter
    Frenzied Member cory_jackson's Avatar
    Join Date
    Dec 2011
    Location
    Fallbrook, California
    Posts
    1,100

    Re: DateTimePicker not binding to My.Settings

    Disregard. I discovered it needs to be checked.

  4. #4

    Thread Starter
    Frenzied Member cory_jackson's Avatar
    Join Date
    Dec 2011
    Location
    Fallbrook, California
    Posts
    1,100

    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?

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    109,991

    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
  •  



Click Here to Expand Forum to Full Width