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 / June 2007

Tip: Looking for answers? Try searching our database.

I am misunderstanding Flowlayout need some advice

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bill Gower - 21 Jun 2007 19:06 GMT
I have a windows form that is using a FlowLayout Panel, top to bottom. I
want to place a panel on the Flowlayout that will be called contentPanel.
By default, contentPanel will fill the entire layout.  If the user clicks
the find button on the toolbar I want to add a panel called findPanel to the
Flowlayout and have it appear above the contentPanel.  When the user clicks
find again, I want the findPanel to disappear and have the contentpanel take
over the whole space again.  How do I do this?

Bill
Bob Powell [MVP] - 27 Jun 2007 20:00 GMT
FlowLayout will provide a left-right top-bottom layout so you can't be
absolutely sure if the components will be shown side-by-side or one on
top of the other.

To get over the uncertainty you can create your own layout engine to
force panels to the same width and place them one above the other.

To show and hide a particular panel, just use it's Visible property.

Signature

Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

> I have a windows form that is using a FlowLayout Panel, top to bottom. I
> want to place a panel on the Flowlayout that will be called contentPanel.
[quoted text clipped - 5 lines]
>
> Bill

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.