Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / August 2006

Tip: Looking for answers? Try searching our database.

Binding NumericUpDown.Value to an app setting only works in one direction

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jesse  McGrew - 04 Aug 2006 07:56 GMT
Using Visual Studio 2005, I've placed a few NumericUpDown controls on a
form and bound their Value properties to user-scope application
settings. The bindings seem to work fine at design time, but only work
in one direction at runtime. When I open the form, the control values
are correctly set, but changing the values does *not* update the app
settings! Closing the form and/or calling
Properties.Settings.Default.Save() doesn't help. What's the deal?

Jesse
Jesse  McGrew - 07 Aug 2006 19:48 GMT
> Using Visual Studio 2005, I've placed a few NumericUpDown controls on a
> form and bound their Value properties to user-scope application
[quoted text clipped - 3 lines]
> settings! Closing the form and/or calling
> Properties.Settings.Default.Save() doesn't help. What's the deal?

Nobody?

This seems like a glaring bug in the app setting bindings: the setting
value is copied into the control, but the only way to get the changed
value from the control back into the app setting is by copying it
manually in a ValueChanged (or FormClosing, etc.) event. The bug
doesn't seem to occur with other controls.

Jesse

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.