private void server_OnClientConnect(object sender, ClientConnectArgs e) { this.BeginInvoke(new SetTextCallback(SetText), new object[] { "Client connected, Client EndPoint: " + e.RemoteEndPoint, msgStatus.Connect }); }