?
Solved

NumericUpDown Control Not Updating Data

Posted on 2009-02-17
5
Medium Priority
?
456 Views
Last Modified: 2012-05-06
I have a NumericUpDown Control on a WinForm that is Not Updating Data.  It is bound to a standard binding source that all of my other controls are bound to and all work fine.  I have tried to use a simple TextBox control and bind the same data to it that I do for the NumericUpDown control and it does fine with sending the changes to the table.  How can I use the NumericUpDown to enter data and reflect changes??
0
Comment
Question by:H-SC
  • 3
  • 2
5 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 23662595
which property have you bound to the NumericUpDown control? is it displaying proper values?
0
 
LVL 1

Author Comment

by:H-SC
ID: 23662709
emoreau,

I have it bound to the value property of the NumericUpDown.  When the form loads and I scroll through records, the NumericUpDown reflects all of the correct values as they currently are, but when I click the up arrorw on the NumericUpDown and go from say 1 to 2, then that is the change that never gets updated.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 23662879
0
 
LVL 1

Author Comment

by:H-SC
ID: 23663056
emoreau,
I am not sure if that scenerio matches, but could be connected somehow.  It seems like the bug deals with overiding the max feature by hand.  In my situation I am just trying to get the updown to reflect changes.  The button acts ok when I click on the up it reads the number 2 but just does not seem to commit the changes.
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 2000 total points
ID: 23663208
have you tried to add a line like this one in the Valided event:
Dim decVal As Decimal = nudSetNumber.Value()
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question