Scheduler for WinForms | ComponentOne
Scheduler Control / Appointment Actions
In This Topic
    Appointment Actions
    In This Topic

    The C1Schedule control allows you to create and set appointment actions using the Action property. The Action property determines an action to take when the current system time reaches the start of the owning Appointment object. By default, control tries to start the system process executing an action. To change this behavior you can set the Cancel property to True in the event handler for the AppointmentCustomAction event.

    Appointment actions let you set behaviors such as executing a local application with specified parameters or navigating to a specific website at an appointment's start time. For example, add the following code to the AppointmentAdded event to navigate to ComponentOne's Web site at a new appointment's start time:

    C#
    Copy Code
    private void c1Schedule1_AppointmentAdded(object sender, AppointmentEventArgs e)
    {
        // Create a new action.
        C1.C1Schedule.Action action = new C1.C1Schedule.Action();
        action.Command = "https://developer.mescius.com";
        // Set appointment action.
        e.Appointment.Action = action;
    }