Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8804755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:41:17+00:00 2026-06-14T01:41:17+00:00

I have a custom Windows Forms (a class which extends System.Windows.Forms ). Its layout

  • 0

I have a custom Windows Forms (a class which extends System.Windows.Forms). Its layout is as follows:

enter image description here

  • FLP: Flow Layout Panel. Flow directions is specified in the name.
  • PB: Picture Box
  • RTB: RichTextBox
  • b: Button

    Onto the problem: it is possible for the FLP at the bottom to be empty (no buttons). When that happens, I’d like it to shrink to zero height, and let the FLP above, and the RTB, grow and fill that space. This is because all that empty space looks ugly when there are no buttons.
    I configured the lower flp with AutoSize = True and AutoSize = GrowAndShrink. Then, for the upper flp, I set AutoSize = True, AutoSizeMode = GrowOnly and Dock = Fill. But when I create a form with no buttons, the space is still there. If I draw the control borders, where the lower flp should be, I see a little square dot.
    Where am I going wrong?

UPDATE: I’m willing to redo the layout in a more convenient way, or even redo the whole form using WPF.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T01:41:18+00:00Added an answer on June 14, 2026 at 1:41 am

    I doesn’t look like you need the Top-Down FlowLayoutPanel.

    Try taking your Right-Left FlowLayoutPanel and Dock it to the bottom. Then take your Left-Right FlowLayoutPanel and Dock Fill it in the remaining area.

    Where your button panel has no visible buttons, then you can just hide the panel and the Filled panel will take up that remaining space.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have my own custom control derived from System.Windows.Forms.TreeView which is present on the
I have created a custom control that inherits System.Windows.Forms.Panel, and adds a few extra
I have a custom control: it's managed code, which subclasses System.Windows.Forms.Control. I want to
I'm currently designing a custom tab control class which derives from System.Windows.Forms.Control. The problem
I have this custom JSlider, which will be used in many other forms/windows. But
I have the following winforms classes: class EntityEditorForm<T>: System.Windows.Forms.Form where T: ICloneable<T> {} class
I wrote a class in C++/CLI which inherits from System.Windows.Forms.UserControl . It works fine,
I have a custom user control on my windows forms. This control has a
Currently, I'm trying to have a top-level window in Windows Forms with a custom
I have panel with two toolbars . How can I to implement custom class

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.