void mForIncrementStep_KeyDown(Block block, System.Windows.Forms.KeyEventArgs e) { if (e.KeyCode == System.Windows.Forms.Keys.Tab) { ForInitializer.SetFocus(); e.Handled = true; } if (e.KeyCode == System.Windows.Forms.Keys.Back) { ForCondition.SetCursorToTheEnd(); e.Handled = true; } }
void mForCondition_KeyDown(Block block, System.Windows.Forms.KeyEventArgs e) { if (e.KeyCode == System.Windows.Forms.Keys.Tab) { ForIncrementStep.SetFocus(); e.Handled = true; } if (e.KeyCode == System.Windows.Forms.Keys.Back) { ForInitializer.SetCursorToTheEnd(); e.Handled = true; } if (e.KeyCode == System.Windows.Forms.Keys.Delete && ForCondition.MyTextBox.CaretIsAtEnd) { ForIncrementStep.SetCursorToTheBeginning(); e.Handled = true; } }