Hi I am using the following to get the system sound question

but it doesn't populate ?

Public Class SystemSoundItem
        Dim sound As SystemSound, soundName As String
    End Class
    Public Property SoundToPlay As SystemSound
        Set(ByVal value As SystemSound)
        End Set
        Get
            SoundToPlay = SystemSounds.Question
        End Get
    End Property

hi Mike. Suspect the root of your problem is this:

System.Media.SystemSounds.Beep.Play

plays a beep

System.Media.SystemSounds.Question.Play

doesn't play anything

Not all windows system sounds are allocated an actual wav file by default. In order to get the question.play to actually make a sound you may need to go into control panel to allocate one. This would then have to be done on every computer that used your app.

Might be better off trying something like this:

My.Computer.Audio.Play ("path to sound file goes here")

Thanks for the reply is it possible to play a sound that is in your Resource folder

thanks

M

ops I will try searching first

thanks

M

My.Computer.Audio.Play(My.Resources.Computer, AudioPlayMode.WaitToComplete)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.