How to hide the vertical scroll bar in a .NET ListView Control in Details mode
Posted
by Adam Haile
on Stack Overflow
See other posts from Stack Overflow
or by Adam Haile
Published on 2010-03-21T20:37:22Z
Indexed on
2010/03/21
20:41 UTC
Read the original article
Hit count: 421
I've got a ListView control in Details mode with a single column. It's on a form that is meant to only be used with the keyboard, mostly with the up/down arrows for scrolling and enter to select. So I don't really need to have the scroll bars and would just like them to not show for a cleaner look. However, when I set the ListView.Scrollable property to false, I can still move the selected item up and down, but as soon as it moves to an item not currently in view, the list won't move to show that item. I've tried using EnsureVisible to programmatically scroll the list, but it does nothing when in this mode.
Is there any way to manually move the list up and down to scroll, but without having the scrollbar present?
© Stack Overflow or respective owner