- Private Sub Combo1_KeyUp(KeyCode As Integer, Shift As Integer)
- 'Saisie semie-automatique
- If KeyCode = vbKeyBack Then Exit Sub
- Dim inc1 As Integer
- Wcount = Len(Combo1.Text)
- If Combo1.Text = "" Then Exit Sub
- For inc1 = 0 To Combo1.ListCount - 1
- If LCase(Combo1.Text) = LCase(Left(Combo1.List(inc1), Wcount)) Then
- Combo1.Text = Combo1.Text & Mid(Combo1.List(inc1), Combo1.SelStart + 1)
- Combo1.SelStart = Wcount
- Combo1.SelLength = Len(Combo1.Text)
- Exit For
- End If
- Next inc1
- End Sub
-
Private Sub Combo1_KeyUp(KeyCode As Integer, Shift As Integer)
'Saisie semie-automatique
If KeyCode = vbKeyBack Then Exit Sub
Dim inc1 As Integer
Wcount = Len(Combo1.Text)
If Combo1.Text = "" Then Exit Sub
For inc1 = 0 To Combo1.ListCount - 1
If LCase(Combo1.Text) = LCase(Left(Combo1.List(inc1), Wcount)) Then
Combo1.Text = Combo1.Text & Mid(Combo1.List(inc1), Combo1.SelStart + 1)
Combo1.SelStart = Wcount
Combo1.SelLength = Len(Combo1.Text)
Exit For
End If
Next inc1
End Sub