Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Can't synch DatePicker to CalenderControl in code
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Can't synch DatePicker to CalenderControl in code

 Post Reply Post Reply
Author
Message
mrsmith View Drop Down
Newbie
Newbie


Joined: 04 August 2006
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote mrsmith Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.