Click here to Skip to main content
14,579,188 members
Rate this:
Please Sign up or sign in to vote.
See more:
I Have a problem with my project ,

I have to disable some date element in my datepicker ,

What I have tried:

How can i solve this?

can anyone please help me?
Posted
Updated 24-Jun-20 20:09pm
Comments
F-ES Sitecore 24-Jun-20 2:25am
   
What date picker?
Rate this:
Please Sign up or sign in to vote.

Solution 1

I didn't understand exactly what you're looking for. See if this article helps you.

DateTimePicker Class (System.Windows.Forms) | Microsoft Docs[^]
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

If you speak about the DateTimePicker the Control don't allow you directly to do that.
The only way could be to do some customizing outside or inside the Control itself.
Perhaps you take a look to this question and it's Solutions :
https://www.codeproject.com/Questions/5271839/Restrict-users-from-selecting-time-outside-of-busi
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100