ActiveX Control Tutorial: Multialarm Clock | CodeGuru

ActiveX Control Tutorial: Multialarm Clock

Environment: VC++ Version 6.0, Windows 2000 This article is intended as a tutorial with a practice lab for building an ActiveX control. It shows how to: Add the new property page in an ActiveX control Use the FireEvent() function of an ActiveX control in an application Add the custom method and efficiently use the custom […]

Written By
CodeGuru Staff
CodeGuru Staff
May 13, 2002
2 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

Environment: VC++ Version 6.0, Windows 2000

This article is intended as a tutorial with a practice lab for building an ActiveX control. It shows how to:


  • Add the new property page in an ActiveX control

  • Use the FireEvent() function of an ActiveX control in an application

  • Add the custom method and efficiently use the custom method in ActiveX application

I also attached the step-by-step files (in each folder), which detail very clearly the steps in building the ActiveX control and using it.

The practice labs perform the ActiveX control clock and then use the ActiveX control clock to obtain the multialarm clock application. The features of multialarm clock are:


  • The user could set the clock for as many as 10 alarms.

  • The user could set how long each alarm rings.

  • The user could set the particular sound file for each alarm. If the sound file is not set, the alarm will beep.

  • The clock alarms will be noticed when the user sets each alarm. The information is shown in order of the next alarm.


Downloads

The files are in two parts (the ActiveX control and using the ActiveX control), as follow.


  1. The ActiveX control includes two folders:

    1. The ActiveX control of a simple clock

    2. The ActiceX control clock, adding some more features



  2. The application of ActiveX control includes two folders (both use the ActiveX control clock shown in 1b):


    1. The simple application uses the ActiveX control clock

    2. The multialarm clock application uses the rich features of an ActiveX control clock


Download Project

ActiveX Clock 01 (3.8 MKB)

ActiveX Clock 02 (3.4 MB)

Alarm Clock Application (5.4 MB)

Multi-Alarm Clock Application (5.5 MB)

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.