Week Scheduler in C#..

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2008
Posts: 25
Reputation: bharathi_n_r is an unknown quantity at this point 
Solved Threads: 0
bharathi_n_r bharathi_n_r is offline Offline
Light Poster

Week Scheduler in C#..

 
0
  #1
Jan 11th, 2008
Hi all,
I am fed up of doing this week scheduler for my project...i am trying and trying but seems to go nowhere..I thought of asking u people for any ideas...(windows application)

My project is online ticket booking and i have a admin screen where he can schedule movies for a particular day and for that week....The problem i am facing is that i want to display the Date and Day of that week in Seven labels..If the user clicks on label Friday 11/1/08.He should see the movies scheduled for friday and he can edit the movie ,timing,etc.....

Iam not able to get the day and date into the labels.
Consider my first label is Friday.The label should have Friday along with date.I did it using date time picker and put it in that label.But the problem is i am not able to increment the day and date for the next day and it should be continous.......
Please forgive me if u dont understand what i said,please refer to a online ticket booking site if u want a clear idea.......

Give me some ideas on how to do this.
Last edited by bharathi_n_r; Jan 11th, 2008 at 2:55 am.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 4
Reputation: rayben is an unknown quantity at this point 
Solved Threads: 0
rayben rayben is offline Offline
Newbie Poster

Re: Week Scheduler in C#..

 
0
  #2
Jan 12th, 2008
Guess you need something like BindingContext
http://www.csharphelp.com/archives3/archive577.html
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 172
Reputation: Jugortha is an unknown quantity at this point 
Solved Threads: 16
Jugortha Jugortha is offline Offline
Junior Poster

Re: Week Scheduler in C#..

 
0
  #3
Jan 12th, 2008
u can use the datetime picker to handel that, this control is a built in control within the tool bar or u can instantiate one
DateTimePicker oDateTimePicker = new DateTimePicker();
DateTime oDate = oDateTimePicker.Value.Date;//Get the date from the date time picker control
Get the day from the date time picker control using this fra
oDateTimePicker.Value.Day;
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 172
Reputation: Jugortha is an unknown quantity at this point 
Solved Threads: 16
Jugortha Jugortha is offline Offline
Junior Poster

Re: Week Scheduler in C#..

 
0
  #4
Jan 12th, 2008
They are other porperties that I guess that they could be interessant for you good luck
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 25
Reputation: bharathi_n_r is an unknown quantity at this point 
Solved Threads: 0
bharathi_n_r bharathi_n_r is offline Offline
Light Poster

Re: Week Scheduler in C#..

 
0
  #5
Jan 14th, 2008
Thanks fellows,
I got the day in to label by using this...
  1. label3.Text = dateTimePicker1.Value.DayOfWeek.ToString();

This returned me the current day.No problem
But how to increment the next label say the first label returned Monday and the next label should return tuesday and so on....How to perform this.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 7
Reputation: a_shym41 is an unknown quantity at this point 
Solved Threads: 0
a_shym41 a_shym41 is offline Offline
Newbie Poster

Re: Week Scheduler in C#..

 
0
  #6
Jan 14th, 2008
Use something like this:
Convert.ToDateTime(dateTimePicker1.Value).AddDays(1)

Shyam
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 25
Reputation: bharathi_n_r is an unknown quantity at this point 
Solved Threads: 0
bharathi_n_r bharathi_n_r is offline Offline
Light Poster

Re: Week Scheduler in C#..

 
0
  #7
Jan 14th, 2008
Thanks man,It is getting incremented but the problem is when i log in tomorrow,the value in the first label and the preceeding labels gets incremented by one day...I dont want that to happen...This is what i have

Label1
Label2
Label3
Label4
Label5
Label6
Label7
Each label should hold a day and that date..I am getting perfectly if i give the code as u said,but if i come tomorrow all the days are changed like the first label changes to tuesday and the next label to Wednesday..Any solution.......
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 7
Reputation: a_shym41 is an unknown quantity at this point 
Solved Threads: 0
a_shym41 a_shym41 is offline Offline
Newbie Poster

Re: Week Scheduler in C#..

 
0
  #8
Jan 14th, 2008
Hi,
I think there is basic problem with your logic in coding.
Please check if the following link helps you:
http://www.basicdatepicker.com/docum...DayOfWeek.html

Thanks,
Shyam
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 25
Reputation: bharathi_n_r is an unknown quantity at this point 
Solved Threads: 0
bharathi_n_r bharathi_n_r is offline Offline
Light Poster

Re: Week Scheduler in C#..

 
0
  #9
Jan 16th, 2008
Hi shyam,
The link u gave is for web application.There is no c# code but only html code.I am developing a windows application..The logic is to get the weeks date in to the labels i have in my form...Check this site for your clarification..www.thecinema.in.You will see the movies scheduled for the week..I want it in that way dude....any solution....
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum
Thread Tools Search this Thread



Tag cloud for C#
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC