© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
16 replies
𝕬𝖓𝖌𝖊𝖑

❔ 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;
            // 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
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
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Startup File to Program file
C#CC# / help
3y ago
implementing wireguard into c# wpf app
C#CC# / help
3y ago
✅ how to create and insert images that represent program data into excel file
C#CC# / help
2y ago
Dynamically load .dll into .NET 6 Program
C#CC# / help
4y ago