2X faster development
The ultimate WinForms UI toolkit to boost your development speed.
Customize the appearance of DateTimePickerAdvYou can customize the appearance of the DateTimePickerAdv in multiple aspects. The following code example demonstrate the same. C# //Sets the backcolor of the DateTimePickerAdv. this.dateTimePickerAdv1.BackColor = colorPickerButton1.SelectedColor; //Sets the border color of the DateTimePickerAdv. this.dateTimePickerAdv1.BorderColor = colorPickerButton2.SelectedColor; // Sets the fore color of the DateTimePickerAdv. this.dateTimePickerAdv1.ForeColor = colorPickerButton3.SelectedColor; // Sets the days’ color of the Month calendar popup. this.dateTimePickerAdv1.Calendar.DaysColor = colorPickerButton4.SelectedColor; // Sets the day names’ color of the Month calendar popup. this.dateTimePickerAdv1.Calendar.DayNamesColor = colorPickerButton5.SelectedColor; // Sets the Inactive month color of the Month calendar popup. this.dateTimePickerAdv1.Calendar.InactiveMonthColor = colorPickerButton6.SelectedColor; // Sets the title back color of the Month calendar popup. this.dateTimePickerAdv1.CalendarTitleBackColor = colorPickerButton7.SelectedColor; // Sets the title fore color of the Month calendar popup. this.dateTimePickerAdv1.CalendarTitleForeColor = colorPickerButton8.SelectedColor; // Sets the fore color of the Month calendar popup. this.dateTimePickerAdv1.Calendar.ForeColor = colorPickerButton12.SelectedColor; // Sets the grid color of the Month calendar popup. this.dateTimePickerAdv1.Calendar.GridBackColor = colorPickerButton11.SelectedColor; VB 'Sets the backcolor of the DateTimePickerAdv. Me.dateTimePickerAdv1.BackColor = colorPickerButton1.SelectedColor 'Sets the border color of the DateTimePickerAdv. Me.dateTimePickerAdv1.BorderColor = colorPickerButton2.SelectedColor 'Sets the fore color of the DateTimePickerAdv. Me.dateTimePickerAdv1.ForeColor = colorPickerButton3.SelectedColor 'Sets the days color of the Month calendar popup. Me.dateTimePickerAdv1.Calendar.DaysColor = colorPickerButton4.SelectedColor 'Sets the day names color of the Month calendar popup. Me.dateTimePickerAdv1.Calendar.DayNamesColor = colorPickerButton5.SelectedColor 'Sets the Inactive month color of the Month calendar popup. Me.dateTimePickerAdv1.Calendar.InactiveMonthColor = colorPickerButton6.SelectedColor 'Sets the title back color of the Month calendar popup. Me.dateTimePickerAdv1.CalendarTitleBackColor = colorPickerButton7.SelectedColor 'Sets the title fore color of the Month calendar popup. Me.dateTimePickerAdv1.CalendarTitleForeColor = colorPickerButton8.SelectedColor 'Sets the fore color of the Month calendar popup. Me.dateTimePickerAdv1.Calendar.ForeColor = colorPickerButton12.SelectedColor 'Sets the grid color of the Month calendar popup. Me.dateTimePickerAdv1.Calendar.GridBackColor = colorPickerButton11.SelectedColor
Figure 1: DateTimePickerAdv appearance Samples: |
2X faster development
The ultimate WinForms UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.