I have two forms that share data between eachother.
In Designer view of Form2 I establish a public variable.
public bool isMyFormValid
When I attempt to access the variable in Form1 like this...
if (Form2.isMyFormValid = true) { //do this}
C Sharp no likey... I get this message: Error 1 An object reference is required for the non-static field, method, or property 'WindowsFormsApplication1.Form2.isMyFormValid' C:\Users\tthompso\documents\visual studio 2010\Projects\practice\practice\Form1.cs 89 23 practice
Clearly there is a basic principal I'm not understanding. Can someone point me to a referece that explains this concept or provide a helpful example?