Quick Find: Search for:

 Total Access Components
Control Tour

Return to Components Home
 

 
 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

About Box

AVI (Video)

Bitmap Effects

Border
Browse for Folder New!
CD Player
Clipboard
Clock
Common Dialogs
Date Time Picker New!
Digital Display
Enhanced Button
Gauge
Icon Menu
INI File
Marquee
Notes
Popup Menu
Progress Meter
Registry
Resize
Slider
Spin Button
Splitter
System Info
Tab Strip
Text Effects
Timer
Wave
 

 

Total Access Components Tour: CD Player

The 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 Control

In 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 Events

The 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 Down

When 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

Name

Description

Minute

The current minute position (this property is Read/Write).

Minutes

The number of minutes on a track.

Repeat

Whether the CD repeats.

Second

The current second position.

Seconds

The number of seconds remaining on a track.

Track

The current track.

Tracks

The number of tracks on a CD.

CD Player Methods

Name

Description

Close

Closes the CD player resource.

Eject

Ejects the CD.

Open

Opens the CD player resource.

Pause

Pauses at the current play position.

Play

Plays the CD.

Stop

Stops playing.

CD Player Events

Name

Description

OnNewPosition

Fires when a new position on the CD is reached.

OnNewTrack

Fires when a new track is started.

 

Contact Us  l   Web questions: Webmaster   l   Copyright © 2008 FMS, Inc.

Celebrating 22 Years of Software Excellence