SchedulerControl() Constructor
Initializes a new instance of the SchedulerControl class with default settings.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v18.2.dll
Declaration
Example
The following example demonstrates how to add the SchedulerControl to a form. Note that the Scheduler Control can be added to your scheduling application at both design-time and runtime.
Design time.
By default, the SchedulerControl item is located in the DX.18.2:Scheduling toolbox tab of the Visual Studio IDE. So, to add the Scheduler Control to your project, simply drag the corresponding toolbox item, and drop it onto the form.
Note
If the form already contains the Scheduler Storage object, then it will be assigned to the SchedulerControl.Storage property. Otherwise, the new Scheduler Storage will be automatically added to the form, and then assigned to the Scheduler Control.
Runtime.
To add a Scheduler Control to a form at runtime, add references to the assemblies listed in the Deployment document. Subsequently create the SchedulerControl and the SchedulerStorage instances using default constructors, set the SchedulerControl.Storage property of the scheduler control and adjust control settings as required.
DevExpress.XtraScheduler.SchedulerControl scheduler = new DevExpress.XtraScheduler.SchedulerControl();
DevExpress.XtraScheduler.SchedulerStorage storage = new DevExpress.XtraScheduler.SchedulerStorage(this.components);
scheduler.Storage = storage;
this.Controls.Add(scheduler);
scheduler.Location = new System.Drawing.Point(28, 12);
scheduler.Size = new System.Drawing.Size(400, 200);