Results 1 to 1 of 1

Thread: Track length and position on a cd player

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2007
    Location
    F.E.V
    Posts
    68

    Cool Track length and position on a cd player

    i am creating a basic cd player and i have created the installation etc and now i want to update it so i deleted everything except the vb forms and the project file. I added four more labels - Track position (time) and a blank label for the time, and a length with a blank label for the length.

    The only problem is that when i run my program it shows the numbers in sort of a millionth of a millisecond. i have no idea what to do. i want the time to be in mm:ss for both. heres the code.

    Code:
     Private Sub Form_Load()
        MMC.Command = "Open"
        Label3.Caption = MMC.Track
        Label4.Caption = MMC.Position
        Label5.Caption = MMC.Length
    End Sub
    
    Private Sub Form_Unload(Cancel As Integer)
        MMC.Command = "Close"
    End Sub
    
    Private Sub MMC_StatusUpdate()
        Label3.Caption = MMC.Track
        Label4.Caption = MMC.TrackPosition
        Label5.Caption = MMC.Length
    End Sub
    Please help

    Here is a screenshot (attached) - Please Help Thanx In Advanced
    Attached Images Attached Images  
    Last edited by TANOVcomputers; Mar 8th, 2007 at 01:17 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width