How to remove the handling of a DateTimePicker

-1

I use the DateTimerPicker component to use the calendar and set the date, but I would like to remove the component's treatments because it makes it difficult to use the user, I already gave an optimized one,     

asked by anonymous 03.03.2015 / 18:19

1 answer

0

In the Load event use this:

dt.CustomFormat = " ";
dt.Format = DateTimePickerFormat.Custom;

private void dtData_Reserva_ValueChanged(object sender, EventArgs e) {
    dtData_Reserva.CustomFormat = "dd/MM/yyyy";
    dtData_Reserva.Format = DateTimePickerFormat.Custom;
}
    
20.05.2015 / 05:52