Selectionner un texte

guillaume - 8 oct. 2001 à 21:22
 WolfKiller - 9 oct. 2001 à 12:02
Je cherche comment selectionner (en surbrillance bleue) le texte d'un textbox en cliquant sur sdans le textbox.
Merci d'avance

2 réponses

Salut
au moment ou ton text prend le focus , tu selectionne tout

Private Sub Text1_GotFocus(Index As Integer)

Text1(Index).SelStart = 0
Text1(Index).SelLength = Len(Text1(Index).Text)

End Sub


Bonne prog
@++ :)
0
-------------------------------
Réponse au message :
-------------------------------

Salut
au moment ou ton text prend le focus , tu selectionne tout

Private Sub Text1_GotFocus(Index As Integer)

Text1(Index).SelStart = 0
Text1(Index).SelLength = Len(Text1(Index).Text)

End Sub


Bonne prog
@++ :)
-------------------------------
Réponse au message :
-------------------------------

Je cherche comment selectionner (en surbrillance bleue) le texte d'un textbox en cliquant sur sdans le textbox.
Merci d'avance
0
Rejoignez-nous