private void LedgerName_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { UnderName.Focus(); } }
public AddUnder() { InitializeComponent(); this.PreviewKeyDown += new KeyEventHandler(HandleEsc); UnderName.Focus(); }