Print Page | Close Window

set event

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=4095
Printed Date: 24 November 2024 at 8:22pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: set event
Posted By: moe188
Subject: set event
Date Posted: 29 April 2006 at 2:17pm

Hi,

how can I be able to load the following data into the calendar control:

date: 4/28/06

Subjet: Event1

StartTime: 8 Am

EndingTime: 10 AM

Thank you,




Replies:
Posted By: sserge
Date Posted: 30 April 2006 at 12:43pm
Hi,

That's really easy:

Dim Event1 As CalendarEvent
Set Event1 = CalendarControl.DataProvider.CreateEvent

Event1.Subject = "Event1"
Event1.StartTime = #4/28/2006 8:00:00 AM#
Event1.EndTime = #4/28/2006 10:00:00 AM#

CalendarControl.DataProvider.AddEvent Event1


--
WBR,
Serge



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