📅  最后修改于: 2022-03-11 14:48:49.535000             🧑  作者: Mango
public class MyNumericUpDown : NumericUpDown
{
public MyNumericUpDown()
{
Controls[0].Hide();
}
protected override void OnTextBoxResize(object source, EventArgs e)
{
Controls[1].Width = Width - 4;
}
}