How do I create a scrolling panel on winform?

Posted on 2006-03-29
Medium Priority
Last Modified: 2008-01-09
I have a winform that is 800x600.
The form will not 'hold' all my controls. I'm out of screen 'real estate'.
I want to add a panel to the form that will scroll with all my control.. just like a webpage does in IE.
My panel needs to be 800x1200.
How do I make a scrolling panel 800x1200 that will scroll up and down in a winform and display all my controls?

I can add a scrolling panel to a winform but the size and scroll is limited to the form size.

Question by:JElster
  • 2
  • 2
LVL 86

Accepted Solution

Mike Tomlinson earned 300 total points
ID: 16322627
I haven't played with it to much, but it seems that the IDE will not let you make the form bigger than the screen at DESIGN-TIME.

However, at RUN-TIME, I changed the location of my controls via code to larger than screen size and the scrollbars appeared and worked correctly with AutoScroll() set to true.

Author Comment

ID: 16322809
I need to the form to remain 800x600 at runtime..... Yes, I can't make the form bigger to position the controls and then set the screen back to 800x600.  
LVL 86

Expert Comment

by:Mike Tomlinson
ID: 16323121
Can you change resolutions and design your form then?

Other than that I think you have to position the controls at run-time via code...

Author Comment

ID: 16323201
No... I have to find another monitor.  It's a weird limitation - that you can design a form larger than your screen.

Assisted Solution

RoninThe earned 100 total points
ID: 16324505
If i get your requirements right, you need a larger virtual area to place your controls and should be able to scroll to these. as you can't make the form bigger due to your screen resolutions, you need to postion your your controls in your code ie at runtme. Just set Form's autoscroll propert to true as Idle_Mind said. scrollbars will be displayed when any child control is placed outside visible area.

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month13 days, 10 hours left to enroll

750 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question