private void listBox_Client_DoubleClick(object sender, EventArgs e) { int nIndex = listBox_Client.SelectedIndex; String strClientName = listBox_Client.Items[nIndex].ToString(); FormComm form = new FormComm(); form.Text = "server_" + strClientName; form.Show(this); }
private void button_Client_Click(object sender, EventArgs e) { this.Hide(); FormComm form = new FormComm(); form.Text = "Client"; form.ShowDialog(); this.Show(); }