Version

ActiveDay Property

Gets/sets the Day object which represents the currently active day.
Syntax
'Declaration
 
Public Property ActiveDay As Day
public Day ActiveDay {get; set;}
Remarks

The ActiveDay can be thought of as the day which has the input focus. The month and week based controls whose UltraScheduleControlBase.CalendarInfo property is set to this instance display a focus rectangle for the date of the ActiveDay. Most navigational keyboard actions are performed with respect to the ActiveDay; for example, for a 'NextDay' or "PreviousDay' keyboard action, it is implied that 'Next' and 'Previous' is with respect to the current ActiveDay. When the ActiveDay property is set to a new value, those controls will also bring that date into the viewable area of the control.

Example
This example makes the first day of the current month the active day.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule
Imports System.IO
Imports System.Globalization

    Private Sub ActivateFirstDayOfCurrentMonth()

        '   Get the first day of the current month as a DateTime
        Dim firstDayOfMonth As DateTime = New DateTime(DateTime.Today.Year, DateTime.Today.Month, 1)

        '   Get a Day object for the first day of the current month
        Dim day As Infragistics.Win.UltraWinSchedule.Day
        day = Me.ultraCalendarInfo1.GetDay(firstDayOfMonth, True)

        '   Set the ActiveDay property to that day object we created above
        Me.ultraCalendarInfo1.ActiveDay = day

    End Sub
using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;
using System.IO;
using System.Globalization;

   private void ActivateFirstDayOfCurrentMonth()
	{

        //   Get the first day of the current month as a DateTime
        DateTime firstDayOfMonth = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1);

        //   Get a Day object for the first day of the current month
        Infragistics.Win.UltraWinSchedule.Day day;
        day = this.ultraCalendarInfo1.GetDay(firstDayOfMonth, true);

        //   Set the ActiveDay property to that day object we created above
        this.ultraCalendarInfo1.ActiveDay = day;

	}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also