Private Sub sealv_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles sealv.TextChanged
Dim i As Integer
For i = 0 To LV1.Items.Count - 1
LV1.Items(i).BackColor = Color.White
Next
With LV1
lst = .FindItemWithText(sealv.Text, True, 0, True)
If Not lst Is Nothing Then
.Items.Item(lst.Index).EnsureVisible()
.Items.Item(lst.Index).BackColor = Color.YellowGreen
Else
For i = 0 To LV1.Items.Count - 1
LV1.Items(i).BackColor = Color.White
Next
.Items.Item(0).EnsureVisible()
.Items.Item(0).BackColor = Color.YellowGreen
End If
End With
lst = Nothing
End Sub
Now, I want to learn the followings:-
1) How to scroll the listview items by textbox keyDown and KeyUp event.
2) And I want to get the listview focused item in the 2nd and 3rd textbox by 1st textbox keypress event( Enter press on keyboard).
Please help me regarding the above.

New Topic/Question
Reply



MultiQuote



|