When you have registered the ocx on your system, start VB, and add the .ocx to your project using the Project|Components menu (Ctrl+T). Click on the browse button and locate the file CountDown.ocx and open it.
You will noe see a reference to the y2kCountDown Control. Add it to your form.
Right Click on the control on your form and select properties and you will see the properties you can change for the control.
It is designed to work as a count down to the Year 2000, using your systems date and time. It can also function as a regular clock, by setting the MODE to normal.
When the date and time gets to the Year 2000 nothing fancy happens(like dropping balloons :). You can code into your program something you would like it to do. You can read the date and time remaining until Y2K from the control by accessing it's DaysRemaining and TimeRemaining properties, for example:
sDaysRem$=Coundown1.DaysRemaining
sTimeRem$=CountDown1.TimeRemaining
Both return string values. TimeRemaining is returned in "hhmmss" format.
For more help on the properties and methods of the control, see the emaple app include with this zip.
The .ocx is freeware. We are selling the Source Code and full documentation for $50 per license. If you are interested please email info@stridersolutions.com with your request, or send a check payable to :
Strider Computer Solutions
1410 Washington Memorial Blvd
Suite 303
St Cloud, MN, 56301
Please be sure to include your email address, or return postal address, so we can get the source code to you.