D
Daniel Carlsson
Hello
I have a few forms where I want to set the focus to a specific control thats
not the first one in the taborder.
Ive tried to do that in OnLoad but that doesnt work, the focus reverts to
the first control.
In one form where I just want the focus to change from a tabcontrols tabs to
the first real control I managed to get it to work by setting the focus in
the VisibleChanged event.
But in another one that I reuse for questions to the user (so the control
will be shown and hidden many times) that doesnt work either.
In what event should I be doing this? I cant change the taborder, it just
wont work with the controls (you cant set a tabcontrol to be selected after
its pages).
Thanks in advance,
Dan
I have a few forms where I want to set the focus to a specific control thats
not the first one in the taborder.
Ive tried to do that in OnLoad but that doesnt work, the focus reverts to
the first control.
In one form where I just want the focus to change from a tabcontrols tabs to
the first real control I managed to get it to work by setting the focus in
the VisibleChanged event.
But in another one that I reuse for questions to the user (so the control
will be shown and hidden many times) that doesnt work either.
In what event should I be doing this? I cant change the taborder, it just
wont work with the controls (you cant set a tabcontrol to be selected after
its pages).
Thanks in advance,
Dan