Example #1
0
        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);
        }
Example #2
0
        private void button_Client_Click(object sender, EventArgs e)
        {
            this.Hide();
            FormComm form = new FormComm();

            form.Text = "Client";
            form.ShowDialog();
            this.Show();
        }