Quantcast
Channel: Set ListView scroll position
Browsing all 11 articles
Browse latest View live

Set ListView scroll position

ListView top item is not working somehow, at least on VS2013. It is always scrolling to the pos-1, rather than pos.I have to use LVM_SCROLL, and as you know it requires pixels.To convert from scroll...

View Article



Set ListView scroll position

Thanks ptaber!

View Article

Set ListView scroll position

OK, it's a two year old thread, but maybe someone else will need this info one day...I've found the best answer to this (for me) is the following: //save scroll positionint idx =...

View Article

Set ListView scroll position

I think the vertical size of a ListView row is the larger of (1) the height of the images in the SmallImageList property and (2) the line height of the ListView's Font. So you could use one of these...

View Article

Set ListView scroll position

Hello, Thank you very much for the answers.  I’m using GetScrollPos for receiving the horizontal scroll position. Also I need LockWindowUpdate to avoid flickering after setting new scroll position. But...

View Article


Set ListView scroll position

Hi, Subclass the ListView control and then add the method for horizontal scrolling as given by Ken over hereCode Snippet[DllImport("user32")]static extern IntPtr SendMessage(IntPtr Handle, Int32 msg,...

View Article

Set ListView scroll position

Okay, I've got it working for my sorting scenario. I'm using a combination of GetScrollInfo and sending an LVM_SCROLL message to the ListView. I'm sure there's a more efficient way to do this, but this...

View Article

Set ListView scroll position

This seems like a really common request, and it's baffling to me that no one has come up with an answer that seems to work consistently. I've tried using GetScrollPos/SetScrollPos and...

View Article


Set ListView scroll position

Hello Suprotim Agarwal, Thanks for your answer. But your function only set the vertical scrollbar. I need to set both vertical and horizontal scrollbar (exactly on the position the had bevore). Is...

View Article


Set ListView scroll position

Hi, Welcome to the MSDN forums. A simple way to do this would be to use EnsureVisible(). So let us say you want the scroll to go to item 20 ListView1.Items[21].EnsureVisible(); or...

View Article

Set ListView scroll position

Hi,I'm using a ListView in Details view and set Scrollable true. Frequently I update the ListView (clear all Items and add new Items). But this causes the scrollbars to set the scroll position to 0. Is...

View Article
Browsing all 11 articles
Browse latest View live




Latest Images