Calender Control

Posted on 2003-03-10
Medium Priority
Last Modified: 2010-04-15
How can I display links to Previous/Next Year in the Calender Control Title. When I add a calender control into a webform, the title only displays the Month name and links to the Previous and Next month and user needs to click a zillion times to get from 2003 to 1996
Are their any way of doing this easily?
Question by:henriv
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

Nebulus_ earned 315 total points
ID: 8102568
You can add 2 new buttons into form (for inc/dec year):

private void BtnAddYear_Click(object sender, System.EventArgs e) {
Calend.VisibleDate = Calend.VisibleDate.AddMonths(12);

private void BtnDelYear_Click(object sender, System.EventArgs e) {
Calend.VisibleDate = Calend.VisibleDate.AddMonths(-12);

If you need to have Calendar like design you must make
VisibleTitle of calendar false, add an label into that
must be the month and year and 4 buttons (2 previously
described and another 2 for inc/dec month)

private void BtnAddMonth_Click(object sender, System.EventArgs e) {
Calend.VisibleDate = Calend.VisibleDate.AddMonths(1);

private void BtnDelMonth_Click(object sender, System.EventArgs e) {
Calend.VisibleDate = Calend.VisibleDate.AddMonths(-1);

I hope this help you

Author Comment

ID: 8104102
Brilliant, that did the trick!

Expert Comment

ID: 8110104
If the answer is OK, it's a problem to score this? :)

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question