Note that there are some explanatory texts on larger screens.

plurals
  1. POWinForms UserControl Layout Autosize Problems
    primarykey
    data
    text
    <p>A while back, I posted <a href="https://stackoverflow.com/questions/1971157/flowlayoutpanel-autosize-height-not-working">this question</a> about trying to get a flowlayoutpanel to autosize properly when docked to the top of a container. What I was trying accomplish was to setup a horizontal (left-to-right) flowlayoutpanel spanning across the top edge of a form, and a datagridview taking up the rest of the available space below the flowlayoutpanel. I was having trouble getting the flowlayoutpanel's height property to autosize the way it should. The posted answer worked perfectly for what I was trying to accomplish, which was great...</p> <p>Unable to leave well enough alone, I am now trying to go one step further and wrap the flowlayoutpanel in a UserControl. I've discovered, however, that doing this causes the flowlayoutpanel to no longer resize its height properly. </p> <p>Here's the first layout, which works beautifully:</p> <pre><code>FlowLayoutPanel1 (Autosize = true, Dock = Top) ComboBox1 ComboBox2 ComboBox3 DataGridView1 (Dock = Fill) </code></pre> <p>And here it is with flowlayoutpanel wrapped in a UserControl:</p> <pre><code>UserControl (Autosize = true, Dock = Top) FlowLayoutPanel1 (Autosizse = true, Dock = Fill) ComboBox1 ComboBox2 ComboBox3 DataGridView1 (Dock = Fill) </code></pre> <p>For whatever reason, flowlayoutpanel doesn't resize its height properly when the form is resized. This is pretty easy to reproduce. Oh also, the FlowLayoutPanel's contents can be anything, not just ComboBoxes.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload