Recent content by Hubert

  1. H

    How to move the cursor to the end of a text box in a Keydown event

    Good morning, friends of the forum, I solved it by adding a KeyDown: Private Sub txtSearch_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeySpace txtSearch = txtSearch + " " KeyCode = 0 End Select txtSearch.SetFocus Me.txtSearch.SelStart = Len(txtSearch.Text) End Sub
  2. H

    How to move the cursor to the end of a text box in a Keydown event

    Buenos dias amigos del foro, lo solucione agregando un KeyDown: Private Sub txtSearch_KeyDown (KeyCode como entero, Shift como entero) Seleccionar código clave de caso Caso vbKeySpace txtBuscar = txtBuscar + " " Código clave = 0 Finalizar Seleccionar txtSearch.SetFocus Me.txtSearch.SelStart =...
  3. H

    SelLength and spaces

    Good morning, friends of the forum, I solved it by adding a KeyDown: Private Sub txtSearch_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case vbKeySpace txtSearch = txtSearch + " " KeyCode = 0 End Select txtSearch.SetFocus Me.txtSearch.SelStart =...
Back
Top Bottom