NumericUpDown with Unit | Custom control | Field padding
问题 Im trying to create a custom control that inherits NumericUpDown to show a settable unit. This is (visually) what I've got so far: My Code: Looks a bit long, but isnt doing that much class NumericUpDownUnit : NumericUpDown { public event EventHandler ValueChanged; /// <summary> /// Constructor creates a label /// </summary> public NumericUpDownUnit() { this.TextChanged += new EventHandler(TextChanged_Base); this.Maximum = 100000000000000000; this.DecimalPlaces = 5; this.Controls.Add(lblUnit);