S
Steve B.
Hi,
I've a strange behaviour on the numericupdown control.
Althought it property "Value" is decimal type, the value cannot be > 2^16.
If the value is greater, it becomes 0.
Here is a sample code that illustrate this :
this.numericUpDown1.Maximum = 1000000;
this.numericUpDown1.Value = 10000; // < 2^16
MessageBox.Show(
this.numericUpDown1.Value.ToString() // Show 10000
);
this.numericUpDown1.Value = 100000;// > 2^16
MessageBox.Show(
this.numericUpDown1.Value.ToString() // Show 0
);
Is there any knowledge about this ?
Thanks,
Steve
I've a strange behaviour on the numericupdown control.
Althought it property "Value" is decimal type, the value cannot be > 2^16.
If the value is greater, it becomes 0.
Here is a sample code that illustrate this :
this.numericUpDown1.Maximum = 1000000;
this.numericUpDown1.Value = 10000; // < 2^16
MessageBox.Show(
this.numericUpDown1.Value.ToString() // Show 10000
);
this.numericUpDown1.Value = 100000;// > 2^16
MessageBox.Show(
this.numericUpDown1.Value.ToString() // Show 0
);
Is there any knowledge about this ?
Thanks,
Steve