[Solved] Simple order form C# buttons not changing labels


To elaborate on my above answer in the comments, ensure the button’s click event has a handler attached to it.

Such as:

    public Form1()
    {
        InitializeComponent();
        Button1.Click += Button1_click;
    }

You can also set this via the designer by double clicking the control to automatically create the event handler in your code and then modify that. Or you can use the properties panel to do this as well (either select a handler you’ve created or double click the field to create a new one):

enter image description here

Given your code, that should be the only reason this isn’t firing, unless something else is hidden from us that we can’t comment on further. Hopefully that helps.

4

solved Simple order form C# buttons not changing labels