first of all thanks for sharing this great control.
But I have one major problem atm:
I have a form, containing a Calendar, showing the whole current month.
Double clicking a header opens a detail-view for that specific day.
This is where I enter items. Closing this "detail"-form should now copy the created items into the calendar showing the month.
But somehow every item I add in the detail view gets added into the first visible day in month view, not into the right date.
Here's the code, doing the copying:
privatevoid Form_CalendarDayDetail_FormClosing(object sender, FormClosingEventArgs e)
foreach(System.Windows.Forms.Calendar.CalendarItem item in calendar1.Items)
parent.Items.Add(item); //parent is the Calendar-instance, showing the whole month
Has anyone figured out how to scroll the all day events, there are times when we have more than 25 or so all day events, and it fills the height of the page, but unlike the Time section, you cannot scroll.
Also, in the calendar view, when you have more than 10 or so items, it adds that little white triangle in the bottom right area of the day, is there a way to scroll so you can see the other events for that day, or do a popup/tool tip to show them?
Love the look of this control, but I would like an update to the download. There have been lots of changes people figured out/made in the comments, and it would be nice to be able to download it with all the updates and changes already made.
I am kind of too lazy to do it myself and I don't understand everything that everybody here has talked about.
Great work really!
We can customize it to work with database very easily.
I just want to know if i select a month in the monthview and get the events of entire month .if my events are more than 4 events in a day ,the 5th item will not be shown.how we can handle it?
hola, te posteo porque quisiera saber como hiciste el diseño del calendario.
cuando abro el programa no puedo ver el Form donde esta las herramientas que utilizaste, es decir por ejemplo si utilizaste un toolstrip o datagridview.....ojala me puedas ayudar
I just noticed that there is no way to set the Selected Date for the MonthView control.
I tried setting properties SelectionStart and SelectionEnd but it seems it doesn't do the job until you actually click any date first.
Add the following code to region props (in MonthView.cs). This adds support to selecting the date range in the monthview control.
///<summary>/// Sets the selection Range
/// triggering only one repaint process
///</summary>///<paramname="dateStart">Start date of view</param>///<paramname="dateEnd">End date of view</param>publicvoid SetSelectionRange(DateTime dateStart, DateTime dateEnd)
_selectionStart = dateStart.Date;
SelectionEnd = dateEnd;
Once you have recompiled the dll, then from your application type monthview1.setselectionrange(StartDate, EndDate)