public frmLogin(IPAddress serverIP,int serverPort) { InitializeComponent(); this.canClose = false; Control.CheckForIllegalCrossThreadCalls = false; this.client = new Proshot.CommandClient.CMDClient(serverIP , serverPort , "None"); this.client.CommandReceived += new Proshot.CommandClient.CommandReceivedEventHandler(CommandReceived); this.client.ConnectingSuccessed += new Proshot.CommandClient.ConnectingSuccessedEventHandler(client_ConnectingSuccessed); this.client.ConnectingFailed += new Proshot.CommandClient.ConnectingFailedEventHandler(client_ConnectingFailed); }