c# - MonthCalendar - Disable days -


i'm doing application in c# visual studio, , i'm using windows forms. need user able select date specific range (for i'm using mindate , maxdate), , days of week. example, want disable mondays. i'm using monthcalendar, haven't found way disable days of week... possible?

you can't stop user picking date on calendar. no trouble complaining , offering better choice:

private void monthcalendar1_datechanged(object sender, daterangeeventargs e) {     if (e.start.dayofweek == dayofweek.monday) {         messagebox.show("i hate mondays");         monthcalendar1.selectionstart = e.start.adddays(1);     } } 

use boldeddates property make valid selections more obvious.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -