It is necessary when pressing the button. (Del) on the numeric keypad, go to the next text field. I found similar solutions, but nowhere can I find the name of this key to substitute in e.KeyData == Keys. ???
Thank you in advance!
If the task is worth it - press the Tab button (and change the focus to another control)
(Examples with TextBox)
private void textBox1_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e) { if (e.KeyCode == Keys.Delete) SendKeys.Send("\t"); } If the task is worth - get the Tab character itself (i.e. \ t) in the same TextBox
private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if(e.KeyChar == (char)Keys.Delete) e.KeyChar = (char)Keys.Tab; } PS You can use Claudia hooks, but these are already drastic measures for such a task.
Source: https://ru.stackoverflow.com/questions/611135/
All Articles
SetFocusright element. - nick_n_aKeys.DecimalwhenNumLock,Keys.Delwhen off. WhenNumLockturned off, the digital unit simply duplicates the corresponding keys and cannot be distinguished, except at the driver level, and I’m not sure. - rdorn