Articles in this section
Category / Section

How to hide the double click to all day event on day view in WinForms ScheduleControl?

1 min read

Hide the double click event

In order to remove “Double Click to Add All Day Event” button in Day view, set the row height of first row of ScheduleControl as 1.

C#

this.scheduleControl1.ScheduleType =  ScheduleViewType.Day;          
scheduleControl1.DataSource = scheduleProvider;
SimpleScheduleDataProvider dataProvider = new SimpleScheduleDataProvider();
dataProvider.MasterList = SimpleScheduleDataProvider.InitializeRandomData();
scheduleControl1.DataSource = dataProvider;
this.scheduleControl1.GetScheduleHost().RowHeights[1] = 1;

VB

Me.scheduleControl1.ScheduleType = ScheduleViewType.Day
scheduleControl1.DataSource = scheduleProvider
Dim dataProvider As New SimpleScheduleDataProvider()
dataProvider.MasterList = SimpleScheduleDataProvider.InitializeRandomData()
scheduleControl1.DataSource = dataProvider
Me.scheduleControl1.GetScheduleHost().RowHeights(1) = 1

Screenshot

Show all day view in schedule control

Samples:

C#: Schedule Control_CS

VB: Schedule Control_VB

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments
Please sign in to leave a comment
Access denied
Access denied