B
Bill-R
I'm trying to convert a vb6 program to vb.net (vb2008 express)
I have text data in a Listview Control
I use a Textbox to enter characters to search the Listview
When a Match is found, I use textbox_textchanged to select listview item
Listview1.Items(z).Selected = True
Listview1.Items(z).EnsureVisible ()
Listview1.Items(z).FullRowSelect = True
Listview1.Items(z).ForeColor = Blue
This works fine .
Then when I hit a Aarrow key in the textbox
I set focus to the listview (Listview1.Focus()
Now if I hit a arrow key to scroll the listview, it jumps to the last place
that was Physically selected. or in case of the first hit it starts at the
top of the listview.
In vb6 the same code would start the listview scroll from the selected item.
What am I missing ????
I have text data in a Listview Control
I use a Textbox to enter characters to search the Listview
When a Match is found, I use textbox_textchanged to select listview item
Listview1.Items(z).Selected = True
Listview1.Items(z).EnsureVisible ()
Listview1.Items(z).FullRowSelect = True
Listview1.Items(z).ForeColor = Blue
This works fine .
Then when I hit a Aarrow key in the textbox
I set focus to the listview (Listview1.Focus()
Now if I hit a arrow key to scroll the listview, it jumps to the last place
that was Physically selected. or in case of the first hit it starts at the
top of the listview.
In vb6 the same code would start the listview scroll from the selected item.
What am I missing ????