❔ Implementing sound file into program

Hello, am coding a tool. Modding tool so to say and my issue is that I can't get the sound file for a "click" implemented correctly.
I checked the name now so often but its just right, the file itself is working as well and the hook is there as well must makes issues.

            // Convert the resource to a byte array
            byte[] soundBytes = Properties.Resources.MouseClick.wav;

Severity    Code    Description    Project    File    Line    Suppression State
Error    CS0117    'Resources' does not contain a definition for 'MouseClick'    Merging Tool    C:\Users\fall3\source\repos\Merging Tool\Merging Tool\Form1.cs    19


I can provide as well more code, if necessary.
2023-09-04_02_55_00-Merging_Tool_-_Microsoft_Visual_Studio.png
Was this page helpful?