Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How do I play a song within a program ?

How do I play a song within a program ?

Scheduled Pinned Locked Moved Visual Basic
questionhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 11413333
    wrote on last edited by
    #1

    Hey guys, i just started to learn some thing on VB, so i came up with this quuestion. I'll be glad if you could help me :)

    D 1 Reply Last reply
    0
    • U User 11413333

      Hey guys, i just started to learn some thing on VB, so i came up with this quuestion. I'll be glad if you could help me :)

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Don't post the same question multiple times. It'll just piss people off and get you ignored.

      A guide to posting questions on CodeProject

      Click this: Asking questions is a skill. Seriously, do it.
      Dave Kreskowiak

      A 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Don't post the same question multiple times. It'll just piss people off and get you ignored.

        A guide to posting questions on CodeProject

        Click this: Asking questions is a skill. Seriously, do it.
        Dave Kreskowiak

        A Offline
        A Offline
        AccessDeveloper
        wrote on last edited by
        #3

        This works: Private Sub cmdPlay_Click() Const ksBSlash As String = "\" Dim sFilespec As String ' Note: This code requires the: WindowsMediaPlayer activex (wmp.dll) ' first add it to resorces then add it to a form as an activex componet. ' cboTuneLU has these fields: ' ID ' Filename ' Path On Error GoTo ERR_cmdPlay_Click ' Get the path & filename from cboTuneLookup sFilespec = Me.cboTuneLU.Column(2) & ksBSlash & Me.cboTuneLU.Column(1) Me![WindowsMediaPlayer7].openPlayer sFilespec EXIT_cmdPlay_Click: Exit Sub ERR_cmdPlay_Click: 'Debug.Print CStr(Err) & " " & Err.Description ShowError "frmLyrics.cmdPlay_Click" Resume EXIT_cmdPlay_Click End Sub

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups