Hi, I have a textbox on a form and I want to set the focus to that textbox when the form loads. In the forms load event I put the following
but when I run the form the textbox doesn't have focus! Does anyone know why this is happening. The textbox is within a groupbox which is within a panel but this shouldn't matter should it??
VB.NET:
txtFirstName.Focus()
but when I run the form the textbox doesn't have focus! Does anyone know why this is happening. The textbox is within a groupbox which is within a panel but this shouldn't matter should it??