PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Programatically scrolling a container
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Programatically scrolling a container
![]() |
Programatically scrolling a container |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
I want a container in which I can control the scrolling programatically. So
it will act like a "window" on top of a larger canvas, with my code controlling where the window is on the canvas. I don't think Panel will do the job since you can't set DisplayRectangle programatically. Any advice ? |
|
|
|
#2 |
|
Guest
Posts: n/a
|
"JezB" <jezbroadsword@blueyonder.co.uk> schrieb:
>I want a container in which I can control the scrolling programatically. So >it will act like a "window" on top of a larger canvas, with my code >controlling where the window is on the canvas. I don't think Panel will do >the job since you can't set DisplayRectangle programatically. Scrollable container controls have an 'AutoScrollPosition' property which can be used to control the viewport area. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Thanks. Now I just have to work out how this AutoScrollPosition works. Tried
the MSDN documentation and can't work it out ! You set +ve values and it returns -ve? sheesh. "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message news:OyYnLcYLGHA.648@TK2MSFTNGP14.phx.gbl... > "JezB" <jezbroadsword@blueyonder.co.uk> schrieb: >>I want a container in which I can control the scrolling programatically. >>So it will act like a "window" on top of a larger canvas, with my code >>controlling where the window is on the canvas. I don't think Panel will do >>the job since you can't set DisplayRectangle programatically. > > Scrollable container controls have an 'AutoScrollPosition' property which > can be used to control the viewport area. > > -- > M S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://classicvb.org/petition/> |
|
|
|
#4 |
|
Guest
Posts: n/a
|
Seems this does NOT work properly when you turn the scrollbars off on the
panel (AutoScroll=false). It does up to a point, but at a certain point it stops scrolling as it is told to! Turn AutoScroll on again and it does, but I really don't want to display scroll bars! "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message news:OyYnLcYLGHA.648@TK2MSFTNGP14.phx.gbl... > "JezB" <jezbroadsword@blueyonder.co.uk> schrieb: >>I want a container in which I can control the scrolling programatically. >>So it will act like a "window" on top of a larger canvas, with my code >>controlling where the window is on the canvas. I don't think Panel will do >>the job since you can't set DisplayRectangle programatically. > > Scrollable container controls have an 'AutoScrollPosition' property which > can be used to control the viewport area. > > -- > M S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://classicvb.org/petition/> |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

