Setfocus prevents SelStart = 1, field still highlighted

Is does not quite correspond to what I am trying to do as when you mouse click, all is fine, it is when forcing move focus via Tab or Enter from keyboard but NOT in the natural tab order.

So why not manage the tab order?

Code:
Private Sub Command2_Enter()
    Command2.TabIndex = 0
    Text0.TabIndex = 1
End Sub

Private Sub Command5_Enter()
    Command5.TabIndex = 0
    Text0.TabIndex = 1
End Sub
 
Solved

Thank you so much for that, such an obvious, simple & clean solution

I did very briefly try but for some reason did not work so well and gave up rather too easily as this time sorted in minutes & have a great solution that avoids so many of the other pitfalls.

Thanks again.
 

Users who are viewing this thread

Back
Top Bottom