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

set event

 Post Reply Post Reply
Author
Message
moe188 View Drop Down
Senior Member
Senior Member


Joined: 27 March 2006
Status: Offline
Points: 220
Post Options Post Options   Thanks (0) Thanks(0)   Quote moe188 Quote  Post ReplyReply Direct Link To This Post Topic: set event
    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,

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: 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
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.