Welcome Guest Search | Active Topics | Sign In | Register

DateTime Picker Options
medis
Posted: Wednesday, February 4, 2009 12:45:04 PM
Rank: Member
Groups: Member

Joined: 12/5/2008
Posts: 27
How do you set the DateTime Picker control to default to the current Month when it displays? It always defaults to January.
eo_support
Posted: Wednesday, February 4, 2009 12:50:09 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You would set the DatePicker's SelectedDate property. For example:

Code: C#
DatePicker1.SelectedDate = DateTime.Now;


You can also set this property at design time through the property window.

Thanks!
medis
Posted: Wednesday, February 4, 2009 2:56:15 PM
Rank: Member
Groups: Member

Joined: 12/5/2008
Posts: 27
What I should have asked is what property of the control do I set so when the user clicks the calendar icon it displays the current month for day selections...

Sorry
eo_support
Posted: Wednesday, February 4, 2009 3:02:32 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You would set VisibleDate.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.