I am misunderstanding Flowlayout need some advice

  • Thread starter Thread starter Bill Gower
  • Start date Start date
B

Bill Gower

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
 
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.

--
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.
 
Back
Top