Sound files stop functioning

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • progg
    New Member
    • May 2009
    • 1

    Sound files stop functioning

    I have added some media file to windows form using the Media components and included it in the project resources file. But when I publish my program and install it on different computer the media controller stops function.

    I will appreciate if you can assist me on how to include the media files in the project package. So, when I install it in deferent machine it will work. Thanks,
  • OuTCasT
    Contributor
    • Jan 2008
    • 374

    #2
    What media did you use ?
    What i have done is created a folder in the file system of the setup project and added the media files to that folder. So the folder including the media gets created on installation.
    Then ive pointed the path of the media to the path where its created with the installation.

    I have used .wmv files, so ive added the windows media component to my vb toolbox and then inserted it onto the form.

    then i called it from the form
    Code:
    AxWindowsMediaPlayer1.URL = Application.StartupPath + "/Help/NewCompany1Help.wmv"

    Comment

    Working...