Question VS2008 Application- Sound issue

BlackFox

New member
Joined
Dec 22, 2008
Messages
2
Programming Experience
Beginner
I have created an application (Windows Form App) in VS2008 on my XP system. I have a sound file (wav) that plays at the splashscreen and then the application loads. When you exit the application, a sound file (wav) plays and the application exits. It runs with no errors on my system.

I transferred the application to my wife's computer, which runs Vista Home Premium. The application runs but no sound plays. I transferred to my laptop which runs Vista Home Basic and the app runs but no sound. Does someone have an idea as to why that is?

I appreciate the time.
 
I forgot to post the code I have to play sound.

The following plays sound file at start of application:

VB.NET:
Public Sub New()
        ' This call is required by the Windows Form Designer.
        InitializeComponent()
        ' Add any initialization after the InitializeComponent() call.
        My.Computer.Audio.Play(My.Resources.taccom1, _
               AudioPlayMode.WaitToComplete)
    End Sub

The following plays sound when you exit application:
VB.NET:
Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
        My.Computer.Audio.Play(My.Resources.taccom2, _
               AudioPlayMode.WaitToComplete)
    End Sub
 
Back
Top