|
Total Access Components Tour: CD PlayerThe CD Player control allows you to play audio compact disks on computers that have the necessary hardware and software. Properties and methods are available to control playing and getting information from Audio compact disks. Note that your machine must have the correct hardware devices and software drivers installed and operating correctly in order for this control to work.
Using the CD ControlIn order to use the CD Player control, place it on your form. The first operation is to initialize the control. This is done with the Open method. Once opened, the other methods are available. Use the Play, Pause and Stop methods to control the CD and the Minute, Second and Track properties to control which part of the CD to play. You can also use the Minutes, Seconds and Tracks properties to determine total time, elapsed time, and remaining time. Responding to EventsThe CD Player control supports two events. The OnNewPosition event is fired every time the CD reaches a new “second”. In other words, while the CD is playing, this event fires 60 times a minute. Use this property to keep updated display controls that show the CD playing time. The OnNewTrack event is fired every time the CD Player control reaches a new track. Use this event to update a display control showing the current track number. Closing DownWhen your application is done with a CD, it should call the Close method. This ensures that the CD Player control correctly shuts down and releases all of its resources. CD Player Properties
CD Player Methods
CD Player Events
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Contact Us
l Web questions: Webmaster
l Copyright
© 2008 FMS, Inc. Celebrating 22 Years of Software Excellence |