I have a NumericUpDown control called "NumericIncrementPrecision" and when I change the value of this NumericUpDown it change for almost all NumericUpDown boxes the increment:
NumericTriggerLocationX.Increment = (decimal)NumericIncrementPrecision.Value;
NumericTriggerLocationY.Increment = (decimal)NumericIncrementPrecision.Value;
[...]
NumericObjectLocationYaw.Increment = (decimal)NumericIncrementPrecision.Value;
But I have 100+ NumericUpDown controls inside GroupBox inside TabPage inside Form, etc. I already tried this but nothing happening:
foreach (Control c in TabEditor.Controls)
{
foreach (Control childc in c.Controls)
{
if (childc is NumericUpDown)
{
NumericUpDown test = (NumericUpDown)childc;
test.Increment = (decimal)NumericIncrementPrecision.Value;
}
}
}
Any idea?
Thank you.