Important To use this sample, it is recommended that you have Microsoft® Visual Basic® version 5.0 or higher installed.
This sample is located in \Samples\ActiveX\Calendar.
Description
Using the Sample
Key Project Files
Technologies Demonstrated
This sample is a jview application that hosts the Microsoft® ActiveX® Calendar control provided in Microsoft® Office. When run, the sample displays a calendar with a selectable month and year.
The sample uses the com.ms.activeX.ActiveXControl class to host the Calendar control. When creating the control, the CLSID or ProgID is passed to the ActiveXControl constructor, which allows you to invoke methods and to retrieve or set properties of the control.
You must have Microsoft® Office 95 or later installed (including the Microsoft® Access Calendar control) to use this sample.
To compile the sample
Use Nmake.exe to compile the Makefile in the \Samples\ActiveX\Calendar directory.
To run the sample
Use the following command to run the sample:
jview Calendar.class
To use the sample
You can perform the following actions with the sample calendar:
This class creates the calendar control and adds it to the layout. It also adds a Kung Fu Fighting button at the top of the calendar window and registers a listener to receive events from the window.