| | |
Week Scheduler in C#..
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jan 2008
Posts: 25
Reputation:
Solved Threads: 0
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.
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.
•
•
Join Date: Dec 2007
Posts: 4
Reputation:
Solved Threads: 0
Guess you need something like BindingContext
http://www.csharphelp.com/archives3/archive577.html
http://www.csharphelp.com/archives3/archive577.html
•
•
Join Date: Oct 2007
Posts: 172
Reputation:
Solved Threads: 16
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;
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;
•
•
Join Date: Jan 2008
Posts: 25
Reputation:
Solved Threads: 0
Thanks fellows,
I got the day in to label by using this...
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.
I got the day in to label by using this...
C# Syntax (Toggle Plain Text)
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.
•
•
Join Date: Jan 2008
Posts: 25
Reputation:
Solved Threads: 0
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.......
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.......
•
•
Join Date: Jan 2008
Posts: 7
Reputation:
Solved Threads: 0
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
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
•
•
Join Date: Jan 2008
Posts: 25
Reputation:
Solved Threads: 0
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....
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....
![]() |
Similar Threads
- windows task scheduler windows 2000- pls help (Windows NT / 2000 / XP)
- I worked a Week Before Asking fore Help (Viruses, Spyware and other Nasties)
- Job Scheduler (Visual Basic 4 / 5 / 6)
- Hotoffers.info Won't Go Away!! (Viruses, Spyware and other Nasties)
- Woe is Me (Viruses, Spyware and other Nasties)
- Computer not closing (Viruses, Spyware and other Nasties)
- scheduled tasks folder (Windows 95 / 98 / Me)
- Can't shake Favoriteman! (Viruses, Spyware and other Nasties)
- ALOT of spyware, need help! (Viruses, Spyware and other Nasties)
- HJT Log for http://fastsearch.cc/ (Viruses, Spyware and other Nasties)
Other Threads in the C# Forum
- Previous Thread: Device Driver
- Next Thread: fetch value
| Thread Tools | Search this Thread |
.net access ado.net algorithm alignment array barchart bitmap box broadcast buttons c# chat check checkbox client color combobox control conversion csharp custom customactiondata database datagrid datagridview dataset datetime degrees development draganddrop drawing encryption enum event excel file files form format forms function gdi+ hospitalmanagementsystems httpwebrequest image index input install java label list listbox listener mandelbrot math mono mouseclick mysql networking operator path photoshop picturebox pixelinversion post programming radians regex remote remoting richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml





