$99 VS $1000+. UI Control for ASP.NET AJAX(contains chart and gridview).
Scheduler control for Windows Forms
Create rich Outlook style functionality and add rich scheduling interfaces to C# Windows application
Home > WinForms UI Controls > User Manual > Get Started Scheduler Control in C#

Set Views of Scheduler in C#.NET application

KetticScheduler control for Windows Forms provides swift performance, simplified deployment and limitless customization capabilities. By using this component in Windows application, the developers are able to easily deploy and customize the scheduler control and add preferences to all views. In this C# tutorial, we are going through the process of customizing the views of scheduler by setting the properties of a specific view and handling the ActiveViewChanging event in .NET application.

C# Customize Views for Scheduler in Windows Forms Project

  • Create a new Windows Forms application in your Visual Studio, and remove the default form in the Solution Explorer.
  • Right click the .NET project and choose the Add | New Item... from the context menu, select the KetticForm template to add it.
  • Drag and drop the DesertTheme from the ToolBox to the Windows Form and change the theme name to Desert.
  • Add a KetticStatusStrip to the Windows Form and change the ThemeName to Desert. Add a KetticLabelElement to the status strip and change the Name property to lblStatus and the Text to "".
  • After the above step, we can add a KetticCommandBar to the Windows Forms with three DropDownListItem elements on it and name these elements as ddlActiveViewType, ddlRange, and ddlACount respectively and the Text of the elements to "".
  • Set the new KetticForm1 to be the startup form and drop a KetticScheduler on the form.
  • Set the Dock property of the KetticScheduler to Fill and change the ThemeName to Desert on the Windows Form.
  • Copy the C# code to the form load to assign values to the combo boxes in the tool strip and add a simple range of integers to the count combo boxes.

foreach (SchedulerViewType viewType in Enum.GetValues(typeof(SchedulerViewType)))
KetticListDataItem item = new KetticListDataItem();
item.Text = viewType.ToString();
item.Value = viewType;
foreach (ScaleRange range in Enum.GetValues(typeof(ScaleRange)))
KetticListDataItem item = new KetticListDataItem();
item.Text = range.ToString();
item.Value = range;
for (int i = 1; i < 10; i++)
KetticListDataItem item = new KetticListDataItem();
item.Text = i.ToString();
item.Value = i;
  • And then add three ChangedSelectedIndex event handlers for the ddlActiveViewType, ddlRange, and ddlCount combo boxes respectively
  • Use the C# code below to set the current ActiveViewType, the RangeFactor, and the DayCount or WeekCount respectively
  • Pass the SchedulerViewChangingEventArgs OldView and NewView to the ChangingActiveView event in KetticScheduler to display the status label in the views

void ketticScheduler1_ActiveViewChanging(object sender, SchedulerViewChangingEventArgs e)
lblStatus.Text = String.Format("Old: {0} New: {1}",
e.OldView.ViewType.ToString(), e.NewView.ViewType.ToString());

  • Run the Scheduler Windows Forms application and check the settings of customization
UI Controlsfor Windows Forms
.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls