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
1180
MonthViewSingle. Brazilian Novice.
posted

I need a very simple example of using MonthViewSingle. I need to make a payment schedule in the database searching which accounts must be paid in one day and showing the component. Most do not know how to begin.

Parents
No Data
Reply
  • 69832
    Suggested Answer
    Offline posted

    The control exposes a property named CalendarInfo; this is a reference to a component of type UltraCalendarInfo, which handles coordination of dates and appointments between the controls to which it is bound. After instantiating the control, you can try the following:

    this.ultraMonthViewSingle1.CalendarInfo.Appointments.Add( DateTime.Today.Add(TimeSpan.FromHours(9)), DateTime.Today.Add(TimeSpan.FromHours(10)), "Hola mundo" );

    You will see an appointment added for 9AM - 10AM of the current day.

    Note that there is a sample which is included with the SDK, 'WinSchedule Database Demo', which demonstrates how to bind each of the WinSchedule controls to a data source.

Children
No Data