• home
  • forum
  • my
  • kt
  • download
  • Creating Multimedia Applications: Part 1

    Author: 2007-09-06 09:14:35 From:

    Lesson 15: Creating Multimedia Applications-Part I

    You can create various multimedia applications in VB that couold play audio CD, audiofiles, VCD , video files and etc.
    To be able to play multimedia files or multimedia devices, you have to insert Microsoft Multimedia Control into your VB applications
    that you are going to create. However, Microsoft Multimedia Control is not normally included in the startup toolbox, therefore you need
    to add the MM control by pressing Ctrl+T and select it from the components dialog box that is displayed.

    15.1 Creating a CD player

    (a) The Interface.
     
     
     
     

    Private Sub Form_Load()
    'To position the page at the center
    Left = (Screen.Width - Width) \ 2
    Top = (Screen.Height - Height) \ 2
    'Open the CD
    myCD.Command = "Open"

    End Sub
    Private Sub myCD_StatusUpdate()
    'Update the track number
    trackNum.Caption = myCD.Track
    End Sub

    Private Sub Next_Click()
    myCD.Command = "Next"
    End Sub

    Private Sub Play_Click()
    myCD.Command = "Play"

    End Sub

    Private Sub Previous_Click()
    myCD.Command = "Prev"
    End Sub

    Private Sub Stop_Click()
    myCD.Command = "Stop"
    End Sub
    Private Sub Exit_Click()
    End
    End Sub

    discuss this topic to forum

    relation tutorial

    No relevant information

    Category

      .NET (8)
      Buttons (3)
      Database Related (7)
      Date and Time (1)
      Development (3)
      Error Handling (2)
      File Manipulation (5)
      Introduction to Visual Basic (9)
      Miscellaneous (2)
      Multimedia (9)
      Networking (9)
      Security (1)
      VB Script (6)

    New

    Hot