public ClientFormController(string IPAddress) { this.ServerIPAddress = IPAddress; myClient = new Client(ServerIPAddress); myClientForm = new ClientForm(this); clientThread = new Thread(myClient.Start); clientThread.Start(); clientThread.Join(); }