Imports Infragistics.Win Imports Infragistics.Win.UltraWinSchedule Imports Infragistics.Win.UltraWinSchedule.CalendarCombo Private Sub SetupSpinButtons() ' Ensure that the spin buttons are visible Me.ultraCalendarCombo1.SpinButtonsVisible = True ' Only increment by one unit with each click Me.ultraCalendarCombo1.SpinButtonIncrementValue = 1 ' Make the increment unit weeks Me.ultraCalendarCombo1.SpinButtonIncrement = SpinIncrementUnit.Weeks End Sub
using Infragistics.Win; using Infragistics.Win.UltraWinSchedule; using Infragistics.Win.UltraWinSchedule.CalendarCombo; private void SetupSpinButtons() { //-------------------------------------------------------------------------------- // SpinButtonIncrement // SpinButtonIncrementValue // SpinButtonsVisible // // This example configures the control's spin buttons to increment or decrement the // selected date by 1 week. //-------------------------------------------------------------------------------- // Ensure that the spin buttons are visible this.ultraCalendarCombo1.SpinButtonsVisible = true; // Only increment by one unit with each click this.ultraCalendarCombo1.SpinButtonIncrementValue = 1; // Make the increment unit weeks this.ultraCalendarCombo1.SpinButtonIncrement = SpinIncrementUnit.Weeks; }