Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
' EnsureTimeSlotVisible can be called 3 different ways.
' Passing a datetime to indicate the desired timeslot time
Me.UltraDayView1.EnsureTimeSlotVisible(New DateTime(1, 1, 1, 12, 15, 0), True)
' Passing an hour and minute to indicate the desired timeslot time.
Me.UltraDayView1.EnsureTimeSlotVisible(12, 15, True)
' Passing the index of the desired timeslot.
Me.UltraDayView1.EnsureTimeSlotVisible(Me.UltraDayView1.GetTimeSlotFromTime(New DateTime(1, 1, 1, 12, 15, 0)).Index, True)
End Sub