Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / August 2006

Tip: Looking for answers? Try searching our database.

Panel doesn't show scroll bars

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
spikedpunchvictim@gmail.com - 07 Aug 2006 22:22 GMT
Perhaps one of you geniouses can help.  I have a panel whose AutoSize =
true.  This Panel is originally empty when the program starts, and it
is programtically populated with my own User Control.  The User Control
is inherited from a Panel itself.  I programatically add each of these
User Cotnrols to the form.  If the Controls go outside of visibility,
I'm expecting vertical scrollbars to show up so the user can scroll
down further to see all of the Controls.  But the vertical scrollbars
don't appear.  I have tried everything to get them to come up.  But I'm
sure I'm missing something simple.  I'm also calling "Invalidate()" and
"PerformLayout()" after adding each control.  No luck.

What am I missing?

Thanks in advance,
~William
Sericinus hunter - 07 Aug 2006 22:35 GMT
> Perhaps one of you geniouses can help.  I have a panel whose AutoSize =
> true.  This Panel is originally empty when the program starts, and it
[quoted text clipped - 8 lines]
>
> What am I missing?

   Have you tried setting AutoScroll property? It is false by default.
spikedpunch - 07 Aug 2006 23:43 GMT
Yes.  I mistakelnly put AutoSize = True in the above post, but I meant
AutoScroll = True.

> > Perhaps one of you geniouses can help.  I have a panel whose AutoSize =
> > true.  This Panel is originally empty when the program starts, and it
[quoted text clipped - 10 lines]
>
>     Have you tried setting AutoScroll property? It is false by default.
Serpent - 09 Aug 2006 14:05 GMT
hey man!!
as you are adding panel with in a panel . make sure that u set
AutoScroll property of all the panels in the hierarchy. Make sure that
the child controls with in the panel has "AutoSize" property set to
false.

If for god sakez this doesn't work, try some manual labour work. By
Capturing the "Resize" event of the panel, explicitly handle the sizes
of all the contained controls.

> Perhaps one of you geniouses can help.  I have a panel whose AutoSize =
> true.  This Panel is originally empty when the program starts, and it
[quoted text clipped - 11 lines]
> Thanks in advance,
> ~William

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.