Click here to Skip to main content
15,904,817 members
Home / Discussions / C#
   

C#

 
GeneralFinding Friday Pin
eggie524-Aug-05 12:28
eggie524-Aug-05 12:28 
GeneralRe: Finding Friday Pin
Christian Graus24-Aug-05 12:45
protectorChristian Graus24-Aug-05 12:45 
GeneralNumericUpDown Problem Pin
wjr-itt24-Aug-05 12:14
wjr-itt24-Aug-05 12:14 
GeneralRe: NumericUpDown Problem Pin
Christian Graus24-Aug-05 12:47
protectorChristian Graus24-Aug-05 12:47 
GeneralRe: NumericUpDown Problem Pin
wjr-itt24-Aug-05 13:42
wjr-itt24-Aug-05 13:42 
GeneralRe: NumericUpDown Problem Pin
Christian Graus24-Aug-05 13:50
protectorChristian Graus24-Aug-05 13:50 
GeneralRe: NumericUpDown Problem Pin
wjr-itt24-Aug-05 13:58
wjr-itt24-Aug-05 13:58 
GeneralRe: NumericUpDown Problem Pin
Christian Graus24-Aug-05 14:06
protectorChristian Graus24-Aug-05 14:06 
wjr@itt.com wrote:
Again, the purpose of the NumericUpDown is to automatically enforce the limits set by the properties and give you a value that you can count on as being correct. If it does not do what is advertised, it is a problem.

But the problem in essence is that the text box does not enforce the number of decimal places you asked for, right ? The Value property does not have a problem, except that it enforces what the text box does not. To my way of thinking, the decimal places property is provided to give you a value within a fixed range that you've requested, but if a use goes outside that, it rounds it for you. If this is not what you want, then you can either have no decimal place specification ( which means you can use the value property ), or you can write your own control to enforce it in the text box as well ( which would mean you could use the value property ).

As far as I can see, it behaves as advertised. The Value property gives you the value in the text box, after applying the rules that you asked it to. I understand that it's not doing what you want, but the Value property is NOT the problem, it's working fine, and overall, it works as the docs suggest. The problem is in what you were hoping for, which is why it's possible to derive your own controls, to get behaviour the framework does not provide.

Christian Graus - Microsoft MVP - C++
GeneralRe: NumericUpDown Problem Pin
wjr-itt24-Aug-05 14:16
wjr-itt24-Aug-05 14:16 
GeneralRe: NumericUpDown Problem Pin
Christian Graus24-Aug-05 14:23
protectorChristian Graus24-Aug-05 14:23 
GeneralRe: NumericUpDown Problem Pin
wjr-itt25-Aug-05 4:00
wjr-itt25-Aug-05 4:00 
GeneralGRAPHICS IN C# and ASP.net Pin
Anonymous24-Aug-05 12:08
Anonymous24-Aug-05 12:08 
GeneralRe: GRAPHICS IN C# and ASP.net Pin
Christian Graus24-Aug-05 12:45
protectorChristian Graus24-Aug-05 12:45 
GeneralAccessing parts of identical use controls Pin
Mikan2324-Aug-05 11:35
Mikan2324-Aug-05 11:35 
GeneralRe: Accessing parts of identical use controls Pin
rudy.net24-Aug-05 17:03
rudy.net24-Aug-05 17:03 
GeneralRe: Accessing parts of identical use controls Pin
Mikan2324-Aug-05 19:21
Mikan2324-Aug-05 19:21 
Generalgetting partial url Pin
philly_dan24-Aug-05 11:19
philly_dan24-Aug-05 11:19 
GeneralRabbi Plotkin's Continuous Form Pin
cgweaver24-Aug-05 10:29
cgweaver24-Aug-05 10:29 
GeneralWeek of month Pin
ehuysamer24-Aug-05 9:49
ehuysamer24-Aug-05 9:49 
GeneralRe: Week of month Pin
Christian Graus24-Aug-05 11:02
protectorChristian Graus24-Aug-05 11:02 
GeneralStopping a dialog Pin
dicas24-Aug-05 9:49
dicas24-Aug-05 9:49 
GeneralRe: Stopping a dialog Pin
Christian Graus24-Aug-05 11:08
protectorChristian Graus24-Aug-05 11:08 
GeneralRe: Stopping a dialog Pin
dicas24-Aug-05 16:53
dicas24-Aug-05 16:53 
GeneralRowFilter Pin
zaboboa24-Aug-05 9:30
zaboboa24-Aug-05 9:30 
GeneralRe: RowFilter Pin
rudy.net24-Aug-05 17:05
rudy.net24-Aug-05 17:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.