![]() |
DatePicker selection |
Post Reply ![]() |
Author | |
WaaZ ![]() Senior Member ![]() Joined: 31 January 2006 Location: United Kingdom Status: Offline Points: 103 |
![]() ![]() ![]() ![]() ![]() Posted: 19 February 2006 at 6:49am |
Hi, According to the helpfile, there should be an attribute called Block under DatePicker.Selection, where Selection is a DatePickerSelection. This is a very urgent matter as we are approaching deadline and it is a blocking factor for us. We need to be able to read the date range from a datepicker. We are using C# and visual Studio 2005 Thanks WaaZ |
|
![]() |
|
TracyP ![]() Groupie ![]() Joined: 16 February 2006 Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() |
I have found the DatePicker needs to be attached to the calendar before
the populate for the Selection.BlocksCount to be greater than 0.
I have also seen it does not update with the calendar in the ViewChanged or SelectionChanged events. It happens after. |
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Access it as an array:
-- WBR, Serge |
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Tracy,
1) For BlocksCount to be greater than 0 you just need to select something. 2) When DatePicker is connected to the Calendar control, a special object is responsible for theirs synchronisation which is called CalendarController. It is hidden for ActiveX, but you can easily read some docs on its C++/MFC version. It catches notifications from both those controls and synchronizes data between them. So far, visual synchronization will be slightly after an event. -- WBR, Serge |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() 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 |