Hey all,
I have a multiview calendar that has 6 columns and 2 rows and I need to show January as the first month and December as the last month (for any selected year). I have set the rangemin to January 1st (selected year) and the rangemax to December 31st (selected year), however this does not cause January to be the first month, the first month is whatever the current month is (in this case March). So I tried setting the focusdate to January 1st (selected year) and that works, however it causes the calendar to look like January 1st is selected, which causes confusion because the user is looking at all of their scheduled working days for the year. I've tried to reset the focusdate to another date (that is a working day, thereby "hiding" the focusdate) within the selected year and that seems to work, however it seems like a workaround and I'm wondering if there is a better way to do what I'm doing.
I would think there is an easy way to set the first/last displayed month without having to set the focusdate. If anyone knows how to do this please let me know.
Also, how do I get rid of the border around today's date?
Thanks!
edit: Tried this, CalendarElement.Calendar.DefaultView.ViewStartDate = "1/1/" & GoalYear but that doesn't work either.
edit2: The above code allows me to click on the calendar header and then I can see that "View" and select it, however I need it auto selected of course
edit3: Ok, I'm seeing really weird behavior. I'm attaching 3 screenshots to show, but basically when the form loads the header says "January 2011-December 2011", however the calendar's start at March 2011 (screenshot 1). When I click on the header I get 2? view options, "January 2011-December 2011" and "December 2011-November 2012" (screenshot 2). If I select "January 2011-December 2011" (which is what I want it to load as) then the result is screenshot 3, which is correct.
I have a multiview calendar that has 6 columns and 2 rows and I need to show January as the first month and December as the last month (for any selected year). I have set the rangemin to January 1st (selected year) and the rangemax to December 31st (selected year), however this does not cause January to be the first month, the first month is whatever the current month is (in this case March). So I tried setting the focusdate to January 1st (selected year) and that works, however it causes the calendar to look like January 1st is selected, which causes confusion because the user is looking at all of their scheduled working days for the year. I've tried to reset the focusdate to another date (that is a working day, thereby "hiding" the focusdate) within the selected year and that seems to work, however it seems like a workaround and I'm wondering if there is a better way to do what I'm doing.
I would think there is an easy way to set the first/last displayed month without having to set the focusdate. If anyone knows how to do this please let me know.
Also, how do I get rid of the border around today's date?
Thanks!
edit: Tried this, CalendarElement.Calendar.DefaultView.ViewStartDate = "1/1/" & GoalYear but that doesn't work either.
edit2: The above code allows me to click on the calendar header and then I can see that "View" and select it, however I need it auto selected of course
edit3: Ok, I'm seeing really weird behavior. I'm attaching 3 screenshots to show, but basically when the form loads the header says "January 2011-December 2011", however the calendar's start at March 2011 (screenshot 1). When I click on the header I get 2? view options, "January 2011-December 2011" and "December 2011-November 2012" (screenshot 2). If I select "January 2011-December 2011" (which is what I want it to load as) then the result is screenshot 3, which is correct.