Print Page | Close Window

Overlapping Events?

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=6760
Printed Date: 06 October 2024 at 12:49pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Overlapping Events?
Posted By: Sparky
Subject: Overlapping Events?
Date Posted: 29 March 2007 at 11:39am
Does the control support this?
 
I'm using this code to create an event:
 
Dim NewEvent As CalendarEvent
Me.CalendarControl1.DataProvider.RemoveAllEvents
Set NewEvent = Me.CalendarControl1.DataProvider.CreateEvent

NewEvent.StartTime = "29-03-2007 12:15:00"
NewEvent.EndTime = "29-03-2007 14:15:00"
NewEvent.AllDayEvent = False
NewEvent.Subject = "testing"
NewEvent.Body = "test"
Me.CalendarControl1.DataProvider.AddEvent NewEvent
Me.CalendarControl1.Populate
If I then create another event, where the start time is within the first event (I.E starts 15 mins later) it doesn't show them along side each other.
 
Is this possible?  If I run the above code a second time, where the start time is 15 mins more, but with the same end time, it just appears to alter the first event I placed. It may have two events, but I can only see one.
 
Where am I going wrong?
 
Cheers.



Replies:
Posted By: Shragel
Date Posted: 29 March 2007 at 2:27pm
Me.CalendarControl1.DataProvider.RemoveAllEvents

this removed the previous event.


Posted By: Sparky
Date Posted: 29 March 2007 at 3:05pm
I'm so dumb, it's unbelievable!
 
Thanks.



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