how to modify a textbox using remoting

Posted by danutz0119 on Stack Overflow See other posts from Stack Overflow or by danutz0119
Published on 2010-05-23T15:18:06Z Indexed on 2010/05/23 15:20 UTC
Read the original article Hit count: 256

Filed under:
|

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; }

© Stack Overflow or respective owner

Related posts about c#

Related posts about remoting