Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule
PrivateSub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
' Get the current state of the UltraDayView control
Dim state As UltraDayViewState = Me.UltraDayView1.CurrentState
' Check the state bit flags to see if a time slot is selected
If (state And UltraDayViewState.TimeSlotSelected) <> 0 Then' Since a time slot is selected, call PerformAction
' to select the same time slot in the next day.
Me.UltraDayView1.PerformAction(UltraDayViewAction.SameTimeSlotNextDay)
EndIfEnd Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;
privatevoid button4_Click(object sender, System.EventArgs e)
{
// Get the current state of the UltraDayView control
UltraDayViewState state = this.ultraDayView1.CurrentState;
// Check the state bit flags to see if a time slot is selected
if ((state & UltraDayViewState.TimeSlotSelected) != 0)
{
// Since a time slot is selected, call PerformAction
// to select the same time slot in the next day.
this.ultraDayView1.PerformAction(UltraDayViewAction.SameTimeSlotNextDay);
}
}