|
-
Jun 3rd, 2009, 05:26 PM
#1
Thread Starter
Fanatic Member
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.
-
Jun 14th, 2009, 02:49 PM
#2
Thread Starter
Fanatic Member
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.
-
Jun 17th, 2009, 02:00 PM
#3
New Member
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]
-
Jun 17th, 2009, 02:49 PM
#4
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
-
Jun 17th, 2009, 03:14 PM
#5
Thread Starter
Fanatic Member
Re: PropertyBinding Not Saving
 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.
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.
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
|