Calendar?

  • Thread starter Thread starter LL
  • Start date Start date
L

LL

I have set the date during the form loading: MyDate.SelectedDate =
DateTime.Now(); // 08/08/2004

But it's now showing by default. I need to navigate to 2004 August, and then
I can see it.

How to set it as default date?

Thanks..
 
Just add:
MyDate.VisibleDate = DateTime.Now();

When you set the SelectedDate (the date really selected), it doesn't change
the VisibleDate (the month shown), which remains to the current date. That's
why you also need to update the VisibleDate.
 

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

Back
Top