private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { string player = dataGridView1.CurrentCell.Value.ToString(); string me = textBox1.Text; //MySqlConnection connection = new MySqlConnection(sqlcon); //connection.Open(); //MySqlCommand command = connection.CreateCommand(); //MySqlDataReader reader; //command.CommandText = "SELECT * FROM regions where name=@p1"; //command.Prepare(); //command.Parameters.AddWithValue("@p1", city); //reader = command.ExecuteReader(); //reader.Read(); //string owner = Convert.ToString(reader["owner"]); //reader.Close(); Form9 frm = new Form9(player,me); frm.Show(); }
private void listBox1_MouseDoubleClick(object sender, MouseEventArgs e) { string text = listBox1.GetItemText(listBox1.SelectedItem); string text2 = textBox23.Text; Form9 frm = new Form9(text, text2); frm.Show(); }