Imports Infragistics.Controls
...
'Prevent end users from selecting weekends
myCalendar.DisabledDaysOfWeek = _
DayOfWeekFlags.Saturday Or DayOfWeekFlags.Sunday
'Prevent end users from selecting dates
'before 1/1/2001 and after 12/31/2012
myCalendar.MinDate = New DateTime(2001, 1, 1)
myCalendar.MaxDate = New DateTime(2012, 12, 31)
'Prevent end users from selecting days from 2010
Dim year2010Range As _
New DateRange(New DateTime(2010, 1, 1), New DateTime(2010, 12, 31))
myCalendar.DisabledDates.Add(year2010Range)
...