I have a basic framework where I have a frmMain which is my main form that
is opened when the application is run. Upon a button click I have a second
from that is opened as such:
Form FormB = new Form2();
FormB.Show();
That form has a label called "label1" which I would like to write to from
frmMain. I tried the somewhat logical (but inncorrect) syntax:
FormB.label1.text = "Success!";
Which doesn't work...I get a compile error:
Error 1 'System.Windows.Forms.Form' does not contain a definition for
'label1' \InitialData\Form1.cs 53 19 InitialData
What should I be doing here, and why doesn't this work the way one would
expect?
Thanks!
RSH