Click here to Skip to main content
15,898,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends,

I have a problem with the scroll bars. In a Listview containing the icons and scroll bars are also there.
When we select the icon at the bottom of the listView and then resizing the listView.
the scrollbar moves to top. I want to restrict to move to top. it should show the focused icon in the list.
can anybody help me....

Regards,
Harish Reddy
Posted
Updated 11-Oct-11 0:26am
v3

1 solution

There is a method on the listbox called
C#
ScrollIntoView(Object item)


Just call this after the listbox has resized, with the Listbox.SelectedItem
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900