private void toolStripTextBox_SearchString_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { this.buttonSearch.PerformClick(); e.Handled = true; e.SuppressKeyPress = true; } }