How can I highlight a Listview item on MouseHover event in VB.net,
just like windows explorer?
How can I highlight a Listview item on MouseHover event in VB.net, just like
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Set the
HoverSelectionproperty of yourListViewcontrol toTrue. However, if you want it to be selected immediately, you can implement it manually. For instance, you could try something like this:Make sure, though, that the
HideSelectionproperty on theListViewcontrol is set toFalse, otherwise the selection will not be shown unless the list has the focus.