how to make datetimepicker readonly in c# Windows Forms?
calVouFromDate.Format = DateTimePickerFormat.Custom; calVouFromDate.CustomFormat = "dd-MMM-yyyy"; calVouToDate.Format = DateTimePickerFormat.Custom; calVouToDate.CustomFormat = "dd-MMM-yyyy";
private void butDisable_Click(object sender, EventArgs e) { myDateTimePicker.Enabled = false; } private void butEnable_Click(object sender, EventArgs e) { myDateTimePicker.Enabled = true; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)