TextBox Keydown event not fired

0
0

Hi,

I need to run some code when user press enter after some text. I tried just like that:

on load:

txtSearch.KeyDown += txtSearch_KeyDown;

 

private void txtSearch_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Return || e.KeyCode == Keys.Enter)
cmdSearch_Click(sender, e);
}

 

txtSearch_KeyDown is never called. Did I miss something?

 

 

  • You must to post comments
0
0

Hello Adrian,

Unfortunately, we weren’t able to reproduce this issue.
Can you tell us what version of Wisej you’re using?

If it’s possible, can you send a small test case too?

Thank you,
Alaa

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.