public SocketClient(Form1 form,string inRemoteIpAddr, int inRemotePortNum) { this._RemoteIpAddress = inRemoteIpAddr; this._RemotePortNumber = inRemotePortNum; f = form; setListBox = f.addListBoxString; }
public SocketClient(Form1 form, string inRemoteIpAddr, int inRemotePortNum) { this._RemoteIpAddress = inRemoteIpAddr; this._RemotePortNumber = inRemotePortNum; f = form; setListBox = f.addListBoxString; }
private void SetListBoxValue(string value) { if (this.listBox1.InvokeRequired) { SetListBox sbox = new SetListBox(SetListBoxValue); listBox1.Invoke(sbox, value); } else { listBox1.Items.Add(value); } }