Hi!
When I used this code in WinForm C# after pres Enter coursor move to txtPas.Text.
How I can use it in WPF textbox?
private void txtLog_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == 13) txtPas.Focus(); }
Hi PRA,
Refer below links -
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/7f0dbccf-527b-4a2f-abe6-22bbe3b897a5/how-to-do-keypress-in-wpf-?forum=wpf
https://stackoverflow.com/questions/13587270/keypress-event-equivalent-in-wpf
https://stackoverflow.com/questions/871619/interpret-enter-as-tab-wpf/871664#871664
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.