|
I have added this control to my project and I can add a dayview control to my form. Now, the problem is ... how do I create a new appointment? Do I need a class() for that? Anyone have an example?
Or another way to put a calendar/dayview/monthview to my project?
|
|
|
|
|
you have to handle ResolveAppointments events to show appointments. see example project.
|
|
|
|
|
I am trying to download the source code from Codeplex[^], but nothing happens after I click the I Agree button and choose a place to save the file to.
Any idea what the problem can be?
I tried both Firefox and IE.
|
|
|
|
|
Looks like codeplex has lost all source code. (i dont know why or how) I'm trying to upload again now, i'll inform you after the upload is complete.
|
|
|
|
|
This is their reply (I e-mailed them about the problem):
At 3pm PDT on April 11th an operator error occurred that caused source control and issue tracker data on one of the Microsoft CodePlex servers to be accidentally overwritten. During the standard data recovery effort, a recovery backup configuration oversight was discovered in the routine backup process for this CodePlex server which is currently impacting immediate restoration of the data.
Note: The content in the Wiki as well as the release files have not been affected. This current outage only affects projects that were hosted on TFS03.
We are working on this situation as a matter of highest priority. All affected projects will have their source control and issue tracker functionality restored soon but the status of the source control and issue tracker data remains unknown at this time. We will report back with a status update by close of business today, Monday, April 16, 2007 PST.
We sincerely apologize for the inconvenience this may have caused. The necessary corrections are already in place to ensure this situation will not occur again.
The CodePlex Team
http://www.codeplex.com/ContactUs.aspx
|
|
|
|
|
I have uploaded sources again. Can you download now ?
|
|
|
|
|
|
Great control expect for one thing, how do i delete an appointment?
|
|
|
|
|
Nevermind worked it out (im abit slow on a monday!) thanks
|
|
|
|
|
Following is a set of appointment - these actually are real times for a day. They present overlaps and that is not good. I have been unable to figure out where the problem is.
// For testing, set appointment for tomorrow
int thisYear = m_Date.Year;
int thisMonth = m_Date.Month;
int thisDay = m_Date.Day;
m_Appointment.StartDate = new DateTime(thisYear, thisMonth, thisDay, 7, 30, 0);
m_Appointment.EndDate = new DateTime(thisYear, thisMonth, thisDay, 14, 0, 0);
m_Appointment.Title = "My test 1";
m_Appointments.Add(m_Appointment);
m_Appointment = new Appointment();
m_Appointment.StartDate = new DateTime(thisYear, thisMonth, thisDay, 8, 30, 0);
m_Appointment.EndDate = new DateTime(thisYear, thisMonth, thisDay, 14, 0, 0);
m_Appointment.Title = "My test 2";
m_Appointments.Add(m_Appointment);
m_Appointment = new Appointment();
m_Appointment.StartDate = new DateTime(thisYear, thisMonth, thisDay, 7, 30, 0);
m_Appointment.EndDate = new DateTime(thisYear, thisMonth, thisDay, 13, 50, 0);
m_Appointment.Title = "My test 3";
m_Appointments.Add(m_Appointment);
m_Appointment = new Appointment();
m_Appointment.StartDate = new DateTime(thisYear, thisMonth, thisDay, 12, 34, 0);
m_Appointment.EndDate = new DateTime(thisYear, thisMonth, thisDay, 13, 30, 0);
m_Appointment.Title = "My test 4";
m_Appointments.Add(m_Appointment);
m_Appointment = new Appointment();
m_Appointment.StartDate = new DateTime(thisYear, thisMonth, thisDay, 7, 30, 0);
m_Appointment.EndDate = new DateTime(thisYear, thisMonth, thisDay, 13, 45, 0);
m_Appointment.Title = "My test 5";
m_Appointments.Add(m_Appointment);
m_Appointment = new Appointment();
m_Appointment.StartDate = new DateTime(thisYear, thisMonth, thisDay, 7, 30, 0);
m_Appointment.EndDate = new DateTime(thisYear, thisMonth, thisDay, 13, 45, 0);
m_Appointment.Title = "My test 5a";
m_Appointments.Add(m_Appointment);
m_Appointment = new Appointment();
m_Appointment.StartDate = new DateTime(thisYear, thisMonth, thisDay, 7, 55, 0);
m_Appointment.EndDate = new DateTime(thisYear, thisMonth, thisDay, 8, 30, 0);
m_Appointment.Title = "My test 6";
m_Appointments.Add(m_Appointment);
m_Appointment = new Appointment();
m_Appointment.StartDate = new DateTime(thisYear, thisMonth, thisDay, 7, 30, 0);
m_Appointment.EndDate = new DateTime(thisYear, thisMonth, thisDay, 9, 30, 0);
m_Appointment.EndDate = new DateTime(thisYear, thisMonth, thisDay, 13, 30, 0);
m_Appointment.Title = "My test 7";
m_Appointments.Add(m_Appointment);
m_Appointment = new Appointment();
m_Appointment.StartDate = new DateTime(thisYear, thisMonth, thisDay, 9, 00, 0);
m_Appointment.EndDate = new DateTime(thisYear, thisMonth, thisDay, 14, 45, 0);
m_Appointment.Title = "My test 8";
m_Appointments.Add(m_Appointment);
//I hope someone can ascertain which routine in DrawAppointments is in error.
David
|
|
|
|
|
The key to understanding this behavior is to study the conflict count, group properties, and halfhourlayouts. Also realize that dayview is designed for 1/2 hour increments and thus the layouts are optimized for half hour rectangles.
You will need to do some work on HalfHourLayouts.
Sorry for little detail, but it's not really an "error", just the way the code is written.
|
|
|
|
|
I use yor control in my project and it work very well, but i have a little problem.
I have myApponintment inherit by Appontment, when i change the end hour by drag top margin of apponitment, i want to change end hour on my dbtable.
How can do it, I don't find an event for this action.
Thank you for yor help and sorry for my english
Francesca Nardi
|
|
|
|
|
You need to create a custom appointment class and override the OnEndDateChanged() method to receive notifications.
class MyAppointment : Appointment
{
protected override void OnEndDateChanged()
{
// db update
}
}
You may use other protected methods to update db.
|
|
|
|
|
Thank you
I have find a problem in your control.
If I select un appointment and after change day, the selected appointment remain visible in the current day.
I adjust this problem set editbox.visible = false.
Also I ask you if you add a property ReadOnly to appointment for not change edit mode if you click on appointment; I manage the appointment information from a custom form and this is not very likeable.
Thank you
Francesca Nardi
|
|
|
|
|
I need to create appointments of 15 or 22 minutes for instance. As well grid`s appearance should stay changeless. I mean what should I do to change the interval of selection from the "halfhour" to one minute. So I`d be able to select area of 16 minutes and set new appointment.
Help me please! Thanks
In code we trust
|
|
|
|
|
If I understand correctly that what you're trying to do is make the control work in one minute instead of half hour intervals, this is not possible with the current code.
|
|
|
|
|
Will it be possible one day ?
Maybe not one minute interval, but 15 ?
|
|
|
|
|
Why not implement the functionality yourself?
|
|
|
|
|
How to save my appointments on my DB and when form load restore my saved appoinmrnt i dont like uso Recordset or other resource , i used direct code
ex:
try
{
conn.Open();
rdr = cmd.ExecuteReader();
if (rdr.HasRows == true)
{
while (rdr.Read())
{
Calend.Name = rdr["CN"].ToString();
Calend.Hour = rdr["Hour"].ToString();
Calend.Date = rdr["Date"].toString();
Calend.Backgrou = rdr["Color"].toString();
}
// The Problem
m_App = new Appointment();
--> m_App.StartDate = ???? MyStart date Saved --> m_App.EndDate = My EndDAte Saved
m_App.BorderColor = MyCOlor Sabved ---> m_App.Title = "Name " +Name " + "Hour "+Hour+ etc..etc..
m_Appointments.Add(m_App);
dayView1.Invalidate();
}
conn.Close();
}
Help me...
|
|
|
|
|
Last week I made some promises about bringing an updated version of the control to the public. Even though it took me longer than I thought, and I was not able to implement everything that I wanted, there are still many changes, and progress has been made towards making this an ultimate bug-free control.
Ladies and gentlemen, without further ado I give you - Calendar DayView Control - Updated, available at http://gimlei.my-place.us
|
|
|
|
|
looks like you did all day events very good thanx for feedback.
i'll try to merge changes to codeplex when i have free time.
|
|
|
|
|
Thanks Ertan. I've sent you an e-mail, so if you want, we can discuss which of the changes should be merged and then give me write access so that I can do some of it a little later.
|
|
|
|
|
Great job Gimlei, i like your fixes a lot.
|
|
|
|
|
Thanks very much Andy. I hoped that my changed would come handy for many people. If you will be developing the control for your needs further and are able to spot/fix any bugs, or implement some of the features in the to-do list (or maybe some others!) and share it with us, that would be amazing.
|
|
|
|
|
Hi, i am in need of any update to this control exists. Unfortunately gimlei, your link is dead, so please could you post a working one or send me an email
vidas.vasiliauskas(eta)etalink.lt
I would be very happy and thankful to you.
Vidas Vasiliauskas
|
|
|
|
|