Scrollable form ??

  • Thread starter Thread starter Les
  • Start date Start date
L

Les

I was wondering if in Visual Basic.net if Microsoft has made it any easier
to scroll within a form. In VB 6 to do that required 2 picture windows that
would in effect simulate a scrollable viewport. I was wondering what
components or etc are available in VB.net that would allow this??

Thanks in advance,

Les
 
You can put any Control into a Panel that is configured to scroll if the
content is larger than the client area of the Panel.

--
HTH,

Kevin Spencer
Microsoft MVP
Short Order Coder
http://unclechutney.blogspot.com

What You Seek Is What You Get
 
Hi Les,

In the 2.0 framework there are actually several controls that can handle
scrolling automatically when child controls are placed outside of the parent's
client area. All of these controls derive, directly or indirectly, from
ScrollableControl (check out the AutoScroll property):

From the VS 2005 Object Browser:

ScrollableControl
ComponentTray
Panel
ToolStrip
ContainerControl
Form
PropertyGrid
SplitContainer
ToolStripContainer
ToolStripPanel
UpDownBase
UserControl

You can also subclass ScrollableControl or ContainerControl in your own custom
controls to inherit automatic scrolling behavior. (Note also that Form and
UserControl are in the list.)
 
One thing to keep in mind that I have found out with auto scrollbars
- I dunno if this will help you.

Having a form that is set to Auto Scroll bar and Anchoring a button in the
right "lets say" ...and putting a minimum Anchor Value, ...
When that minimum value is hit, the scroll bar will not show - even if auto
scroll bar is set to true.

-VB 2005 express

Miro
 
Back
Top