Overlapping Events? |
Post Reply |
Author | |
Sparky
Newbie Joined: 29 March 2007 Status: Offline Points: 2 |
Post Options
Thanks(0)
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.
|
|
Shragel
Groupie Joined: 15 May 2006 Status: Offline Points: 48 |
Post Options
Thanks(0)
|
Me.CalendarControl1.DataProvider.RemoveAllEvents
this removed the previous event. |
|
Sparky
Newbie Joined: 29 March 2007 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
I'm so dumb, it's unbelievable!
Thanks.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |