In windows, you only see the selection when the caret is in the control, as you’re not putting the caret in there, you don’t see the selection, but it is selected.
Do a Me.SetFocus after the Me.SelectAll
Edit: However, that should really be done on the MouseDown to keep somewhere near standard windows behavior.
So:
Function MouseDown(X As Integer, Y As Integer) Handles MouseDown as Boolean
Me.SelectAll
Me.SetFocus
Return True
End Function
Edit2: For the pedants (got to love forum rules), to actually answer the original question, the Focus isn’t placed into the control because of the Return True in MouseDown, if you do that, you have to take care of all the actions that would have normally taken place on that control.