et le GotFocus n'est pas disponible en Compact Framwork ????
Mais j'ai trouvé une facon de faire...
Quand le textbox perd le focus alors la valeur d'une variable est modifié....
PrivateSub Focus1Inter(ByVal sender AsObject, ByVal e As System.EventArgs) Handles txtPoint1.LostFocus
LostFocusInter = 1
EndSubPrivateSub Focus2Inter(ByVal sender AsObject, ByVal e As System.EventArgs) Handles txtPoint2.LostFocus
LostFocusInter = 2
EndSubEt une fois que le checkbox coché, il inscrit dans le textbox le texte...
PrivateSub chkPointCroix_CheckStateChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chkPointCroix.CheckStateChangedIf LostFocusInter = 1 Then
txtPoint1.Text = txtPoint1.Text & "+"
chkPointCroix.Checked = False
txtPoint1.SelectionStart = txtPoint1.Text.Length + 1
ElseIf LostFocusInter = 2 Then......Maintenant je suis incapable de remtettre le focus dans le textbox même avec la fonction SelectionStart... C'est le Checkbox qui garde le focus????
Si vous voyez d'où vient le prob...
merci