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

Overlapping Events?

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


Joined: 29 March 2007
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sparky Quote  Post ReplyReply Direct Link To This Post Topic: Overlapping Events?
    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.
Back to Top
Shragel View Drop Down
Groupie
Groupie


Joined: 15 May 2006
Status: Offline
Points: 48
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shragel Quote  Post ReplyReply Direct Link To This Post Posted: 29 March 2007 at 2:27pm
Me.CalendarControl1.DataProvider.RemoveAllEvents

this removed the previous event.
Back to Top
Sparky View Drop Down
Newbie
Newbie


Joined: 29 March 2007
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sparky Quote  Post ReplyReply Direct Link To This Post Posted: 29 March 2007 at 3:05pm
I'm so dumb, it's unbelievable!
 
Thanks.
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.172 seconds.