monthcalendar

Subclass a MonthCal control in Win32

Objective: use the standard Win32 MonthCal control, and paint days such as holidays in RED. It seems like the Win32's native approach would be use the MCN_GETDAYSTATE notification, which seems to allow only painting specific days in Bold. Possible (but declined) solution would be to write my own painted-at-will MonthCalendar, driving m...

MonthCalendar.SelectionRange databinding example

How do you perform databinding against the MonthCalendar.SelectionRange property? Given the property is of type 'SelectionRange' which is a class I am not sure how to go about it. Any examples would be much appreciated. ...

Gray out dates older than the MinDate in WinForms MonthCalendar control

I am using the MonthCalendar controls in a Windows Forms application. I want to gray out the dates older than the control's MinDate (or give the user some visual clue about which dates are not valid for selection). The control has no property for getting the behaviour I expect. I have tried the UltraDateTimeEditor from Infragistics but i...

Is there a .NET Culture dependent 'Today' string?

I am writing a month calendar style control and need to display a string that indicates today's date. So on an English culture machine it would show 'Today : 11/02/2009'. If a different culture happens to be used, such as French, then I would like to use the French word for 'Today'. Does anyone know if the .NET platform exposes this word...

C# WinForms MonthCalendar Control - Customizable Date Range?!

Hello! I have a list of dates. I would like to be able to populate a windows forms monthcalendar control to show these dates as selectable(clickable) dates, whilst any date that is not in the list is disabled on the calendar control. Is it possible to do this? regards, ...

calculate period between two monthcalender in C#

I have two monthcalender in C# win application , and I need to calculate the period between then. I need how many day between two or three month or also years I need how many month between tow different years. When I use : monthcalender.selectstart.month; this command just calculate the different between months in same year, but wh...

Bolded dates in MonthCalendar

I'm having some trouble with the bolded dates in monthcalendar (it's a windows forms project). When I set all the dates I want to be bold to bold, I can't see them bold, but then if i change Vista visualisation to classic I can see the bolded dates. I've also noted that on a classmate's computer who is also using Vista, I can see the bo...

C# and Month Calendar, selecting multiple dates

I am making a program that will help people "book" orders for a department in C#. They need to be able to choose multiple dates in different months. I would prefer to have it so they can click a date, and then shift click another one to select all dates between those two, and control clicking as well, to do single selection/deselection...

Change color of dates on monthCalendar?

How do I change the color of the dates on a monthCalendar. I have a dataGridView with a column for dates. How do I takes those dates, input them into my monthCalendar, and change the color of the dates in the column. ...

Get all the values of a dataGridTextboxColumn

I have a dataGridView that has a column called Date Due which is of type System.DataTime. I want to put these dates in a monthCalendar. Do I have to iterate throught the column? Do I have to cast it? ...

MonthCalendar Control has extra border when ShowToday is False

In Winform's MonthCalendar control I am getting a weird white border on the top and bottom of the calendar when I don't want to show the today label. Is there anyway to disable this? ...

MonthCalendar in WPF?

Is there a free class library that offers a MonthCalendar control for WPF? And is the MonthCalendar equal to if not better than the Winforms MonthCalendar. ...

Using monthcalendar control, when i select a day and use that as a filter for my SQL it does not work as expected

I am trying to use the selectionstart and selectionend attributes from monthcalendar to filter between two login dates in a table. When I chose one single day, this does not work correctly. If i chose the day before and the day after the day in question then it will. The time values in my DB are like this: 2/23/2010 11:17:01 AM Both ...

monthcalendar control selected range not drawing correctly

I have a monthcalendar control in my form and when I select a range, the range just whites out. I checked the titlebackcolor (Highlight) and titleforecolor (AliceBlue) and they are not set to white. Anyone know what I can do to correct this? ...

python calendar to calculate month backwards

Hi, we are trying to create a calendar function in python. we have created a small content management system, the requirement is, there will be a drop down list on the top right hand corner of the website, which will give the options - Months - 1 month, 2 months, 3 months and so on..., if the user selects 8 months then it should show the...

Possible to set monthCalendar to show current month and previous 2 months?

In a WinForms (3.5) application there is form with a monthCalendar control. The calendar control has a calendarDimension of 3 columns by 1 row. This means that it currently shows June, July, August of 2010. Is it possible to have the calendar to show April, May, June of 2010 instead? My dataset doesn't have any future dates so the da...

c# using monthcalendar or datetimepicker in terminal server

I have a form with a datetimepicker on it which runs fine locally when I run my program from a terminal server the calendar in the datetimepicker seems to be a lot larger than when run locally this behaviour is the same if i use a month calendar control instead it seems that there is an issue with terminal server with regards to displ...

Customizing the MonthCalendar control

I am trying to modify the MonthCalendar control to only show tuesdays or only Tuesdays are clickable. I tried looking for an owner draw or overriding the Paint or DayRender Method. None of those options were available in VS 2008? Any other ideas? Thank you ...

Best way to find the months between two dates (in python)

I have the need to be able to accurately find the months between two dates in python. I have a solution that works but its not very good (as in elegant) or fast. dateRange = [datetime.strptime(dateRanges[0], "%Y-%m-%d"), datetime.strptime(dateRanges[1], "%Y-%m-%d")] months = [] tmpTime = dateRange[0] oneWeek = timedelta(weeks=1) tmpT...