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 / September 2004

Tip: Looking for answers? Try searching our database.

newbie form question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stephanie_Stowe@IDX.COM - 20 Sep 2004 19:20 GMT
I have a form with a treeview on it. This form also has a user control.
This user control has a panel with controls in it (a couple of textboxes
and a ComponentOne TrueDB Grid). It is lovely. Except that when I resize
the form, the panel does not present scrollbars. I have the panel's
autoscroll property set to true. I went into the user control in the
designer. If I resize the panel itself, the scrollbars automatically
appear. And that is lovely. If I resize the control itself, the scrollbars
do not appear. This makes sense to me. The panel does not know it's
container was resized. How do I tell it?

Thanks

Stephanie
Mikhail Fedosov - 20 Sep 2004 20:53 GMT
Did you set the Anchor property of Panel to (AnchorStyles.Top |  
AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right) ?

I suppose if you set this property correctly you'll get rid of your  
problem. In this case Panel will follow the parent (user control) size.

> I have a form with a treeview on it. This form also has a user control.
> This user control has a panel with controls in it (a couple of textboxes
[quoted text clipped - 10 lines]
>
> Stephanie
Stephanie_Stowe@IDX.COM - 21 Sep 2004 12:40 GMT
Well now, didn't I just learn something. I set the Anchor property of the
panel. Then I set the Anchor property of the user control on the form. And
voila. It works like a charm. I read the Anchor property help, and it
makes perfect sense. Thanks for the direction!

> Did you set the Anchor property of Panel to (AnchorStyles.Top |
> AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right) ?
[quoted text clipped - 16 lines]
> >
> > Stephanie

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.