Groups | Blog | Home
all groups > vb.net controls > september 2005 >

vb.net controls : Scrolling the Panel Control Programmatically


Phil Galey
9/27/2005 4:19:33 PM
If you have a panel control with scroll bars displayed, how do you scroll
the panel programmatically?

Herfried K. Wagner [MVP]
9/28/2005 12:00:00 AM
"Phil Galey" <pagaley@starcalif.com.nospam> schrieb:
[quoted text, click to view]

Set the control's 'AutoScrollPosition' property accordingly.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
Phil Galey
9/28/2005 8:10:02 AM
Setting the AutoScrollPosition property on the panel control to 0 moves the
scroll to the top. However, the number associated with the bottom-most
position of the scroll varies with the size of the document. How can you
determine this number?



[quoted text, click to view]

Herfried K. Wagner [MVP]
9/28/2005 5:44:47 PM
"Phil Galey" <pagaley@starcalif.com.nospam> schrieb:
[quoted text, click to view]

Check out the control's 'DisplayRectangle' property.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
AddThis Social Bookmark Button