开发者

Scrolling horizontally and vertically ListView WinForms C#

I've couple of question开发者_如何转开发s regarding scrolling ListView without using external ListView controls from other vendors (free or pay versions).

  1. How to make 2 (or more) ListView bound together in the way that if i start scrolling one ListView the other one does exactly the same? Is it even possible to do with native 3.5 or 4.0 (when it's released) ListView?

  2. When you try to scroll ListView right or left using the arrows on the scroll bar it's very very slow. For fast way you either have to grab the scroll and move it yourself or do jumps with it. Is there a way to make the left or right moving faster? A bit like down/up? (although i guess the speed is the same just the length to scroll is proportionally longer).

With regards,

MadBoy


You will have to use P/Invoke to make this work. You'll find example code in this thread. It is for a ListBox, it will also work for ListView. Use pinvoke.net to find the C# declaration for SendMessage.

I'm not aware of a fix for the scroll increment. The SetScrollInfo API function doesn't allow setting the small step increment.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜