I would like to create two files were one acts as a control panel type thing were if I click a button on one page I want it to display text on the other page,
Thanks
I would like to create two files were one acts as a control panel type thing were if I click a button on one page I want it to display text on the other page,
Thanks
Create a public function in the class which is used to modify a control. As an example:
form1 is control, form2 is being changed (code in C#)
from form 1: form2 frm2 = new form2();
frm2.show();
frm2.textbox1Modify("Some text");
and in form 2 the function would look something like:
public void textbox1Modify(string newValue)
{
this.textbox1.text = newValue;
}
There's also set/get functions but I haven't used them in so long, I'd be afraid they'd get totally butchered. The above should work though.