예제 #1
0
        public IntegerInput(int initialValue, int inputMax)
        {
            InitializeComponent();

            fallbackValue     = initialValue;
            ClosingOk         = false;
            NumUpDown.Maximum = inputMax;
            NumUpDown.Value   = initialValue;
            NumUpDown.Select(0, NumUpDown.Value.ToString().Length);
        }
예제 #2
0
 private void NumUpDown_Focus(object sender, EventArgs e)
 {
     NumUpDown.Select(0, NumUpDown.Text.Length);
 }