DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: MMControl

  1. #1
    Join Date
    Aug 2004
    Posts
    43,023

    MMControl

    [Originally posted by Man Chan]

    Hi,

    I'm writting a simple CD Player which can play Audio CD only.

    I had set
    1> MMControl1.DeviceType = "CDAudio"
    2> MMControl1.UpdateInterval = 1000

    The track playing is display by
    Private Sub MMControl1_StatusUpdate()
    Label1.Caption = "Playing Track : " & MMControl1.Track
    End Sub

    Why the MMControl1.Track not updated when the song is playing?
    e.g. I play the Sound Track1, then it will automatically play Track2. But the MMControl1.Track haven't increase.

    Is there anything I'm wrong?

  2. #2
    Join Date
    Aug 2004
    Posts
    43,023

    Re:MMControl

    [Originally posted by neophile]

    At a guess, I'd say it's because the status hasn't changed... i.e., it's still in "play"
    You might be better of using a Timer control...


    Private Sub Timer1_Timer()
    Label1.Caption = "Playing Track: " & CStr(MMControl1.Track)
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center