I want to be able to control a label from an external class - i tried
to put in a 'private void LabelChange(string Text2Change2) {
label1.Text = Text2Change2 }' into my FrmMain class, and the only way i
can get it working in another class is by
class ExternalClassThing
{
public void ChangeThatLabel(string Text2Change2)
{
FrmMain mainfrm = new FrmMain();
mainfrm.Show();
mainfrm.LabelChange(Text2Change2);
}
}
quite obviously, i cant have a new window pop up each time i want to
change the label's text, so is there any way for the ExternalClassThing
to take control of the current instance of FrmMain ? and maybe even
directly use the label1 ?