Starting from 15.1.6, time editors of the default appointment form does not display seconds:
![]()
To modify appointment editing form, create an inherited form and show it instead of the default form.
To accomplish this, perform the following steps:
1. In the Visual Studio Designer, click the ShedulerControl's smart tag and select Create Custom Appointment Form.
![]()
2. The Customize Appointment Form dialog is displayed. Click OK.
![]()
3. The code of the CustomAppointmentForm class is added to the project and the EditAppointmentFormShowing event handler is added automatically.
4. Add code that changes the Mask Type of the time editors on the form, to the form's constructors, as illustrated in the code snippet below.
To modify appointment editing form, create an inherited form and show it instead of the default form.
To accomplish this, perform the following steps:
1. In the Visual Studio Designer, click the ShedulerControl's smart tag and select Create Custom Appointment Form.
2. The Customize Appointment Form dialog is displayed. Click OK.
3. The code of the CustomAppointmentForm class is added to the project and the EditAppointmentFormShowing event handler is added automatically.
4. Add code that changes the Mask Type of the time editors on the form, to the form's constructors, as illustrated in the code snippet below.
[C#]publicCustomAppointmentForm(DevExpress.XtraScheduler.SchedulerControlcontrol,DevExpress.XtraScheduler.Appointmentapt):base(control,apt){InitializeComponent();this.edtStartTime.Properties.Mask.EditMask="T";this.edtEndTime.Properties.Mask.EditMask="T";}publicCustomAppointmentForm(DevExpress.XtraScheduler.SchedulerControlcontrol,DevExpress.XtraScheduler.Appointmentapt,boolopenRecurrenceForm):base(control,apt,openRecurrenceForm){InitializeComponent();this.edtStartTime.Properties.Mask.EditMask="T";this.edtEndTime.Properties.Mask.EditMask="T";}
5. Run the project and double-click time cell in the Scheduler view to invoke the appointment editing form. Time editors display seconds:[VB.NET]PublicSubNew(ByVal control As DevExpress.XtraScheduler.SchedulerControl, ByVal apt As DevExpress.XtraScheduler.Appointment)MyBase.New(control, apt) InitializeComponent()Me.edtStartTime.Properties.Mask.EditMask = "T"Me.edtEndTime.Properties.Mask.EditMask = "T"EndSubPublicSubNew(ByVal control As DevExpress.XtraScheduler.SchedulerControl, ByVal apt As DevExpress.XtraScheduler.Appointment, ByVal openRecurrenceForm AsBoolean)MyBase.New(control, apt, openRecurrenceForm) InitializeComponent()Me.edtStartTime.Properties.Mask.EditMask = "T"Me.edtEndTime.Properties.Mask.EditMask = "T"EndSub