I have a numericupdown object dynamically created inside a class, however when I enter the value manually and click on another dynamic button within the same class(or take the focus away from the numericupdown) the value keeps getting multiplied by 10 for some reason. Now I can probably get around this by constantly dividing it by 10 but I have no idea why it does this. I have the declaration like this:
amount = new NumericUpDown
{
Location = new Point(530, shift),
Width = 85,
Height = 24,
Minimum = 0.0M,
DecimalPlaces = 1,
Increment = 0.1M,
Maximum = 3500,
};
How can I resolve this issue?