all groups > vb.net controls > august 2005 >
You're in the

vb.net controls

group:

programmatically scroll panel


programmatically scroll panel Lespaul36
8/25/2005 4:31:39 PM
vb.net controls: Is there a way to programically scroll a panel. I can't use the scroll to
control, I need to scroll it to a selected item in a listview that is inside
the panel.

TIA

Re: programmatically scroll panel Ken Tucker [MVP]
8/26/2005 5:30:13 AM
Hi,

Take a look at the panels autoscrollpostion and the listviews
ensurevisible

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsscrollablecontrolclassautoscrollpositiontopic.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformslistviewclassensurevisibletopic.asp

Ken
-------------------------
[quoted text, click to view]
Is there a way to programically scroll a panel. I can't use the scroll to
control, I need to scroll it to a selected item in a listview that is inside
the panel.

TIA


AddThis Social Bookmark Button