|  | 
| Can't synch DatePicker to CalenderControl in code | 
| Post Reply   | 
| Author | |
| mrsmith   Newbie   Joined: 04 August 2006 Status: Offline Points: 5 |  Post Options  Thanks(0)  Quote  Reply  Topic: Can't synch DatePicker to CalenderControl in code Posted: 22 August 2006 at 4:56pm | 
| I have a datepicker and calendarcontrol -- like in the calendar sample app -- and when I set the datepicker to a range using: wndDatePicker.AttachToCalendar CalendarControl wndDatePicker.SelectRange Date0, Date1 wndDatePicker.RedrawControl It does not change the calendarcontrol's view.  It does this when you manually click it with the mouse, but not in code.  Is there an easy way to do this? Thanks. | |
|  | |
| sserge   Moderator Group   Joined: 01 December 2004 Status: Offline Points: 1297 |  Post Options  Thanks(0)  Quote  Reply  Posted: 24 August 2006 at 3:04am | 
| 
   Hi, An easy way would be to change Calendar's view after redrawing DatePicker. Add: CalendarControl.DayView.ShowDays Date0, Date1 -- 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 |