Calendar Control - Selecting a date in another month

B

Bob Hansen

Howdy all,

I'm setting the SelectedDate property on a Calendar control through code and
sometimes that date may be in the next month, however, the calendar control
still displays the current month and not the month of the date selected. If
I advance to the month where the date is selected, it shows as selected just
fine. How can I make it so that the correct month is displayed?

Thanks,

Bob Hansen
 
R

Robert Koritnik

SelectedDate and VisibleDate property usage. One for selecting, other for
displaying. the best way to do is when you select a day, you set:
VisibleDate = SelectedDate;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top