method Events.Add (event as Date)
Adds a new date event, and retrieves the newly created date event.

 TypeDescription 
   event as Date A DATE expression that indicates the event's date  
 ReturnDescription 
  EventAn Event object that holds graphical information about a date. 

Use Add property to adds a new element to the collection. Each Event object has associated a date. If the  Events collection contains already an event associated to the date, the Add method retrieves the reference to the associated event. If the date is not associated to none of the Event objects, a new Event object is added to the collection. The Date property is initialized with the event parameter. 

The following sample shows how to bold "today" date:

Calendar1.Events.Add(Date).Bold = True

Send comments on this topic.
© 1999-2006 Exontrol Inc, Software. All rights reserved.