Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1040
CalendarLook Holiday
posted

I use Infragistics v13.2. vs2013. vb.net

I want to show that "New Year" in the holidays calendar.

How can I do?//

my code is..

        Dim AP As Infragistics.Win.Appearance
        ' Create an Appearance for each holiday
        AP = Me.ultraCalendarLook1.Appearances.Add("New Year's Day")
        AP.ForeColor = Color.Red
        AP.FontData.Bold = Infragistics.Win.DefaultableBoolean.False
        AP.ImageBackground = ImageList2.Images(0)
        AP.ImageHAlign = Infragistics.Win.HAlign.Left
        AP.ImageVAlign = Infragistics.Win.VAlign.Middle
        ultraCalendarLook1.DaysOfYearLook(YearMonthEnum.January, 1).Appearance = _
          Me.ultraCalendarLook1.Appearances("New Year's Day")

        ultraCalendarLook1.DaysOfWeekLook(DayOfWeekEnum.Sunday).Appearance = Me.ultraCalendarLook1.Appearances("New Year's Day")

        UltraMonthViewSingle1.CalendarLook = ultraCalendarLook1