Sound problems
I'm trying to make a simple program that shows a picture of the selected animal (using a combobox not a listbox) and also have it play the sound of that animal, but I can't get the sound to work despite using a .wav file and using the soundplayer function correctly. I'm using winform.NET on visual studio 2022 btw.
5 Replies
$details
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, what you expect the result to be, what .NET version you are using and what platform/environment (if any) are relevant to your question. Upload code here https://paste.mod.gg/, save, and copy the link into chat for others to see your shared code! (see $code for more information on how to paste your code)
here's the link to the code
https://paste.mod.gg/trxztdhtjuvk/0
I'm just trying to get it to play a cat meowing sound rn (don't mind the image names btw I named them that because i originally downloaded them on the school computer)
BlazeBin - trxztdhtjuvk
A tool for sharing your source code with the world!
you need to call
sound.Play()
as wellthank you!