Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am develpoing a desktop calendar apps for adding new appointment.There is a Calendar DayView control
in my window apps.Now when I click on the button then appointment is created but I wantto insert that appointment into database.
I am using this code for the appointment:--

C#
private void button2_Click(object sender, EventArgs e)
       {
           Appointment m_App = new Appointment();
           m_App.StartDate = dayView1.SelectionStart;
           m_App.EndDate = dayView1.SelectionEnd;
           m_App.BorderColor = Color.Red;

           m_Appointments.Add(m_App);

           dayView1.Invalidate();

       }

appointment.cs code is in another c# file which is calling.
Posted
Updated 19-Jan-12 20:30pm
v2
Comments
Faiszsal 13-Mar-13 11:04am    
i have the same doubt.. yes i used dayview from codeplex and i cannot delte the appointment neither i can store it in databse so that when the application is shut dwn n restarted it should show all exact d way it is... it clear all appointment 1ce shut dwn.. ny suggestions

1 solution

Hi, do you use DayView component from codeplex?
http://calendar.codeplex.com/[^]
 
Share this answer
 
Comments
Shukla Pawan 20-Jan-12 2:59am    
Yes I am using that But value is not inserting into database. I wantto make my database where values should remain and I wantto access my database. So How to insert value .Tell me.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900