Click to return to the Component Development home page    
Web Workshop  |  Component Development

Timer Control -- Reference Info


Properties

Enabled: Enables [True] or disables [False] the timer.

Interval: Interval (in milliseconds) at which the Timer event will be triggered. When this property is set to a negative value or zero, the timer will behave as in the disabled state.


Methods

AboutBox: Displays the About dialog box


Events

Timer: When the timer is enabled and has a positive interval, this event is invoked at every interval.


Sample HTML


   <OBJECT ID=Timer1 CLASSID="clsid:59CCB4A0-727D-11CF-AC36-00AA00A47DD2"
      CODEBASE="http://activex.microsoft.com/controls/iexplorer/x86/ietimer.cab#version=4,71,115,0">
      ALIGN=MIDDLE>
      <PARAM name="Interval" VALUE="100">
      <PARAM name="Enabled" VALUE="True">
   </OBJECT>

   <OBJECT ID=Timer2 CLASSID="clsid:59CCB4A0-727D-11CF-AC36-00AA00A47DD2"
      CODEBASE="http://activex.microsoft.com/controls/iexplorer/x86/ietimer.cab#version=4,71,115,0">
      ALIGN=MIDDLE>
      <PARAM name="Interval" VALUE="500">
      <PARAM name="Enabled" VALUE="True">
   </OBJECT>

   <SCRIPT LANGUAGE="VBSCRIPT">
   Sub Timer1_timer
       label.Angle = (label.Angle + 5) mod 360
   End Sub
   Sub Timer2_timer
       cool.forecolor = rnd() * 16777216
   End Sub
   </SCRIPT>

HomeBack to ActiveX Controls Programming Reference



Back to topBack to top

© 1999 Microsoft Corporation. All rights reserved. Terms of use.