This question is locked. New answers and comments are not allowed.
When I open a window (in code behind with show or showdialog) I want to set focus on a specific textbox, but it doesn't seem to work.
Below is the code:
Below is the code:
| Private Sub login_window_Loaded(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles Me.Loaded |
| TextBoxUsername.Focus() |
| End Sub |