Results 1 to 5 of 5

Thread: PropertyBinding Not Saving

  1. #1

    Thread Starter
    Fanatic Member Vectris's Avatar
    Join Date
    Dec 2008
    Location
    USA
    Posts
    941

    PropertyBinding Not Saving

    Well I just learned about PropertyBinding and I was all happy to try it out and then *bang*, it doesn't work.

    It actually did work on a new project I created, but in specific there's another project that I'm trying to PropertyBind and it doesn't work.

    All I'm trying to do is Bind the Checked value of a CheckBox. The CheckBox is in a group box but I don't think that should affect it. I also have Save My.Settings on Shutdown saved.

    Anyone know what might be causing this? I also tried to save the Text of a textbox not in a group box and that didn't work either.
    Last edited by Vectris; Jun 8th, 2009 at 10:22 AM.
    If your problem is solved, click the Thread Tools button at the top and mark your topic as Resolved!

    If someone helped you out, click the button on their post and leave them a comment to let them know they did a good job

    __________________
    My Vb.Net CodeBank Submissions:
    Microsoft Calculator Clone
    Custom TextBox Restrictions
    Get the Text inbetween HTML Tags (or two words)

  2. #2

    Thread Starter
    Fanatic Member Vectris's Avatar
    Join Date
    Dec 2008
    Location
    USA
    Posts
    941

    Re: PropertyBinding Not Saving

    Well it's been over a week and I still have no clue why PropertyBinding won't work in my project. I'll probably only bump this once but I still would very much like to hear any ideas. Otherwise I have to copy all my controls and such to a whole new project.
    If your problem is solved, click the Thread Tools button at the top and mark your topic as Resolved!

    If someone helped you out, click the button on their post and leave them a comment to let them know they did a good job

    __________________
    My Vb.Net CodeBank Submissions:
    Microsoft Calculator Clone
    Custom TextBox Restrictions
    Get the Text inbetween HTML Tags (or two words)

  3. #3
    New Member
    Join Date
    Jun 2009
    Posts
    1

    Re: PropertyBinding Not Saving

    Here's a very late reply for you...

    Are you using DataBinding as well? I had the same problem with a combobox in a toolbar, which does not allow for DataBinding. A work-around I used was to save the settings with code on form closing.

    Code:
    cboInformation.Text = My.Settings.[your setting]

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: PropertyBinding Not Saving

    vectris - how did you set it up?
    And what is it not doing that it should? (in other words what does "it doesn't work." mean?)

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  5. #5

    Thread Starter
    Fanatic Member Vectris's Avatar
    Join Date
    Dec 2008
    Location
    USA
    Posts
    941

    Re: PropertyBinding Not Saving

    Quote Originally Posted by ohitsdom View Post
    Here's a very late reply for you...

    Are you using DataBinding as well? I had the same problem with a combobox in a toolbar, which does not allow for DataBinding. A work-around I used was to save the settings with code on form closing.

    Code:
    cboInformation.Text = My.Settings.[your setting]
    How is that a work-around? That's how you normally do it. The whole pint of PropertyBinding is so you don't have to use code.

    how did you set it up?
    And what is it not doing that it should? (in other words what does "it doesn't work." mean?)
    I set it up by selecting the CheckBox, going to ApplicationSettings, selecting the Checked drop down box, choosing New and creating a variable for it.

    What this is supposed to do is automatically save the Checked state of that checkbox every time the form exits and to auto-load it too. I tried this on a new program and the checkbox's checked property would always save. On this one project however it won't! Also "Save My.Settings on Exit" is checked under project properties.
    If your problem is solved, click the Thread Tools button at the top and mark your topic as Resolved!

    If someone helped you out, click the button on their post and leave them a comment to let them know they did a good job

    __________________
    My Vb.Net CodeBank Submissions:
    Microsoft Calculator Clone
    Custom TextBox Restrictions
    Get the Text inbetween HTML Tags (or two words)

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