merhaba arkadaşlar aşağıdaki kod ile textbox içinde kayıt buluyor fakat aynı kayıttan kaç tane varsa enter tuşuna basınca sonrakini bulmasını istiyorum.
Private Sub TextBox22_Change()
Dim t As String
Dim i As Integer
t = TextBox22.Text
ListBox1.ListIndex = -1
If TextBox22.Text = "" Then Exit Sub
For i = 0 To ListBox1.ListCount - 1
If UCase(ListBox1.List(i)) Like UCase(t & "*") Then
ListBox1.ListIndex = i
Exit Sub
End If
Next i
End Sub
Private Sub TextBox22_Change()
Dim t As String
Dim i As Integer
t = TextBox22.Text
ListBox1.ListIndex = -1
If TextBox22.Text = "" Then Exit Sub
For i = 0 To ListBox1.ListCount - 1
If UCase(ListBox1.List(i)) Like UCase(t & "*") Then
ListBox1.ListIndex = i
Exit Sub
End If
Next i
End Sub
