© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
5 replies
Pillow

✅ Button doesn't trigger function for it

According to https://learn.microsoft.com/en-us/visualstudio/ide/create-csharp-winform-visual-studio?view=vs-2022 I think this should work, but it doesn't. Here's the code:
private void btnClick1_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Hello, world.");
        }
private void btnClick1_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Hello, world.");
        }

and the properties for the button (default except for the name and text which are changed)
(btw, nothing happens when I click it if that wasn't clear)
image.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

✅ SignalR trigger for Azure Function (isolated) does not trigger.
C#CC# / help
12mo ago
✅ Route Doesn't Trigger When Called Externally
C#CC# / help
15mo ago
❔ Why doesn't this button work?
C#CC# / help
3y ago