private void NameBox_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == '\r') { LB.PerformClick(); } }