I'm creating a windows form application C#, I'm trying to disable all weekdays in DateTimePicker C# and keep one day on and not disabled according to the day number that i write in the Textbox "day_toselect".
Notice about day number : Sunday is day 0, Monday is day 1 ,..., Wednesday is day 3, .....Saturday is day 6.
FOR EXAMPLE : if I write 3 in the Textbox named "day_toselect", so i want only to turn on all Wednesdays in the DateTimePicker and disable all the other days.
Is there a way to do that?