public override void Show() { SetSpinButtonFromTimingMode(); spinButton.SelectRegion(0, spinButton.Text.Length); base.Show(); }
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); }