private void TextBoxSearch_KeyDown(object sender, KeyEventArgs e) // Sự kiện ấn nút enter => login { if (e.KeyCode == Keys.Enter) { BtSearch.PerformClick(); } }
private void TBSearch_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { e.Handled = e.SuppressKeyPress = true; BtSearch.PerformClick(); } }