private void serverButton_Click(object sender, EventArgs e) { this.Hide(); var choosePort = new ChoosePort(); choosePort.Show(); }