I have 3 forms. When I click on the "admin" on the first form, I open the second form, where I enter the password. If it is correct, then the third form opens, where I can change the variables used in the first form. The problem is that I do not know how to link the third form and the first, so that the values of the variables change. I need that when changing the variables in the third form, their values are taken in priority over the values specified in the code to the first form. How can I do that?
int rent = 5, coldwater = 20, gas = 30, electricity = 40, hotwater = 50, heating = 60, phone = 70, tv = 80, net = 90;
These are my variables specified in the code to the first form