'Declaration Public ReadOnly Property DaysOfYear As DaysOfYearCollection
public DaysOfYearCollection DaysOfYear {get;}
Imports Infragistics.Win Imports Infragistics.Win.UltraWinSchedule Imports System.IO Imports System.Globalization Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button1.Click ' The indexer to the DaysOfYear collection has 2 overloads one takes ' a 1-based ordinal, and the other takes a month and day. We will use the ' latter so that we don't have to figure out how many days into the year ' Valentine's Day is. Me.ultraCalendarInfo1.DaysOfYear(2, 14).Enabled = False End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinSchedule; using System.IO; using System.Globalization; private void button1_Click(object sender, System.EventArgs e) { // The indexer to the DaysOfYear collection has 2 overloads; one takes // a 1-based ordinal, and the other takes a month and day. We will use the // latter so that we don't have to figure out how many days into the year // Valentine's Day is. this.ultraCalendarInfo1.DaysOfYear[ 2, 14 ].Enabled = false; }
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