Hi All,
I have a mediator class that takes a form in its constructor. My question is how I access the controls on the form within the mediator? Using something like frm.txtBox.Text = ""; give a build error. I can move through the controls collection for the reference so the form is there and that part is correct, but I would like to access each control on the form individually in the easiest way possible something like frm.myTxtBox.Text = hello;
Any ideas?
Mike
I have a mediator class that takes a form in its constructor. My question is how I access the controls on the form within the mediator? Using something like frm.txtBox.Text = ""; give a build error. I can move through the controls collection for the reference so the form is there and that part is correct, but I would like to access each control on the form individually in the easiest way possible something like frm.myTxtBox.Text = hello;
Any ideas?
Mike