コード例 #1
0
        public override void Show()
        {
            SetSpinButtonFromTimingMode();

            spinButton.SelectRegion(0, spinButton.Text.Length);

            base.Show();
        }
コード例 #2
0
        private void OnTimeChanged(SpinButton spbDate)
        {
            if (changingFilter)
            {
                return;
            }

            if (!spbDate.Sensitive)
            {
                return;
            }

            int cursorPosition = spbDate.CursorPosition;

            OnFilterChanged(EventArgs.Empty);
            spbDate.GrabFocus();
            spbDate.SelectRegion(cursorPosition, cursorPosition);
        }