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.
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.
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]
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
Re: PropertyBinding Not Saving
Quote:
Originally Posted by
ohitsdom
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.
Quote:
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.