Print Page | Close Window

Can't synch DatePicker to CalenderControl in code

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=4856
Printed Date: 22 November 2024 at 3:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Can't synch DatePicker to CalenderControl in code
Posted By: mrsmith
Subject: Can't synch DatePicker to CalenderControl in code
Date 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.



Replies:
Posted By: sserge
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net