Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Calender control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Calender control

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


Joined: 18 June 2007
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Deepak Quote  Post ReplyReply Direct Link To This Post Topic: Calender control
    Posted: 29 August 2007 at 4:54am
Hi in my VB application i am using calender control
i have written following code for recurrence in load event
 
 
 Set NewEvent = myCalender.DataProvider.CreateEvent
 NewEvent.Subject = "Testing"
 Set Recurrence = NewEvent.CreateRecurrence
 Recurrence.StartDate = dtpStartDate.Value
 Recurrence.EndDate = dtpEndDate.Value
 Recurrence.StartTime = "03:00"
 Recurrence.DurationMinutes = 30
 Recurrence.Options.RecurrenceType = xtpCalendarRecurrenceDaily
 Recurrence.Options.WeeklyIntervalWeeks = 1
 Recurrence.Options.WeeklyDayOfWeekMask = xtpCalendarDayMo_Fr
 NewEvent.UpdateRecurrence Recurrence
 myCalender.DataProvider.AddEvent NewEvent
 
 
it just hangs...
please tell me where i went wrong.
i dont want to load dates from xml.
 
is the problem is due to Provider..
 
 
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: 01 October 2007 at 7:12pm
The problem is that you've set .RecurrenceType = xtpCalendarRecurrenceDaily but trying to setup Weekly properties like .WeeklyIntervalWeeks, .WeeklyDayOfWeekMask...

Those properties should be of the same type (both daily, or weekly).

--
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.219 seconds.