Question beginner methods question


New member
May 8, 2024
Programming Experience
hey everyone

we are game dev students and are very new to C#.

we have an assignment that requires several forms (visual studio) and mainly using methods. What would be the easiest way for to make methods accessible to all forms. As well as sharing and updating variables between them?

properties, encapsulation, access modifiers. //this was a suggestion given by our lecturer

Form1 form1 = new Form1();


naturally this doesn't really explain to us how this works with methods and variable etc.
this is also an sdi program (its all we know but ive seen this question pop up alot). we'd also like to avoid things like singletons and delegations etc.

if anyone is willing to help us to provide any good tutorials that would be a huge help. thanks in advance.
Top Bottom