how to modify a textbox using remoting
- by danutz0119
I am trying to modify a textBox found in the server Form using remoting
from the client side. i have tried some solutions i found, but none of them work.
the remoting part works propperly, the only thing that I am not able to figure out is this:
this is what i have:
client side:
...
private void btn_b1_Click(object sender, EventArgs e)
{
...
myFunc.update(string s);
...
}
...
sharedLibs:
public interface myInterf
{
void update(string s);
}
server side:
here i have 2 classes in the same namespace
class class1 : MarshalByRefObject, myInterf
{
public void update(string s)
{
//what do i write here to modify textBox1?
}
}
public partial class class2 : Form
{
...
// here is the textBox i am trying to alter;
}