❔ Why cant i access hungry bool in user control when clicking on vargBTN_click?
Original message was deleted
hungry is a member of a Form1 instance, not a global thingTittaPåDjurSkärm is unrelated to Form1 the way you have it currentlyForm1 to TittaPåDjurSkärm, probably via the constructorForm1 mainForm or something like thisform should likely be this (assuming that code is in Form1)thishungryForm1 and one in Animal/close hungryhungryForm1Form1Form1Form1TittaPåDjurSkärmTittaPåDjurSkärmForm1 mainForm