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
665
UltraMonthViewSingle - Imitating Microsoft outlook calendar
posted

hello all,

I am trying to imitate Microsoft outlook calendar by using UltraMonthViewSingle, all I need is to browse forward and backward with this control to display months.

I am using ultraCalendarInfo and applying the following commands:

Next: CalendarInfo.GetDay(uMonthView.CalendarInfo.ActiveDay.Date.AddMonths(1), true).Activated = true;

Previous: CalendarInfo.GetDay(uMonthView.CalendarInfo.ActiveDay.Date.AddMonths(-1), true).Activated = true;

It works fine but not displaying the month's days, for example the active day is June 01, pressing next will make July 01 the active day which will be great, but if the active day is june 30 , pressing next button will skip a whole month and July 30 will be the active day and first visible day in the month view.

I need to see all days in every month I browse forward or backward.

 

 

  • 20
    posted

    Fujiki said:

    hello all,

    I am trying to imitate Microsoft outlook calendar by using UltraMonthViewSingle, all I need is to browse forward and backward with this control to display months.

    I am using ultraCalendarInfo and applying the following commands:

    Next: CalendarInfo.GetDay(uMonthView.CalendarInfo.ActiveDay.Date.AddMonths(1), true).Activated = true;

    Previous: CalendarInfo.GetDay(uMonthView.CalendarInfo.ActiveDay.Date.AddMonths(-1), true).Activated = true;

    It works fine but not displaying the month's days, for example the active day is June 01, pressing next will make July 01 the active day which will be great, but if the active day is june 30 , pressing next button will skip a whole month and July 30 will be the active day and first visible day in the month view.

    I need to see all days in every month I browse forward or backward.

     

     

     

    Couple days ago I was in the Internet and noticed there an unusual software - error office repair tool pst. I downloaded it and astonished reason of the program decided my problem for a minute and totally free of charge as far as I remembered. 

  • 665
    Verified Answer
    posted

    Ok I found it out after some tests, it works as follows:

     

    DateTime today = CalendarInfo.ActiveDay.Date.AddMonths(1);

    DateTime ActiveDay = CalendarInfo.ActiveDay.Date.AddMonths(1);

     

    while (today.Day != 1)

           today = today.AddDays(-1);

     

    CalendarInfo.ActiveDay = CalendarInfo.GetDay(ActiveDay, true);

    uMonthView.ScrollDayIntoView(today, true);