ComponentOne Scheduler for WinForms
Appointment Actions
Working with Scheduler for WinForms > Appointment Actions

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:

Private Sub C1Schedule1_AppointmentAdded(ByVal sender As Object, ByVal e As
            AppointmentEventArgs) Handles C1Schedule1.AppointmentAdded            ' Create a new action.            Dim action As New Action()            action.Command = "https://www.grapecity.com"            ' Set appointment action.            e.Appointment.Action = action            End Sub
private void c1Schedule1_AppointmentAdded(object sender, AppointmentEventArgs e)
{
// Create a new action.
Action action = new Action();
action.Command = https://www.grapecity.com;
// Set appointment action.
e.Appointment.Action = action;
}