I wrote the code a while ago and everything works fine on all of the machines I've installed it on. I am now trying to put it on the daycare's old pentium 3 with win98. I wrote it in VB.Net 2005 and installed .net framework 2.0. When the sounds are supposed to play, I get nothing. No sound, No error, no nothing.. Here is the code. Any ideas?
Does System.Media.SoundPlayer come from the framework (I think it does ) or from the OS?Code:Sub PlaySound(ByVal Filex As String) Dim Sound As New System.Media.SoundPlayer() Sound.SoundLocation = Filex Sound.Load() Sound.Play() End Sub
here is an example of how I am calling this
Code:FormMain.PlaySound(System.AppDomain.CurrentDomain.BaseDirectory.ToString & "Counting\Question1.wav")


Reply With Quote



Bookmarks