private void Host_Click(object sender, EventArgs e) { ServerGUI serverWindow = new ServerGUI(); serverWindow.StartPosition = FormStartPosition.Manual; serverWindow.Location = this.Location; this.Hide(); Thread serverThread = new Thread(() => { Application.Run(serverWindow); }); serverThread.Start(); gameForm.SetLocalhost(); gameForm.Show(); }