Note that there are some explanatory texts on larger screens.

plurals
  1. POReordering of controls within a flow layout panel
    text
    copied!<p>I'm having trouble using the flowlayoutPanel in a C# winform application. What I basically have is a flow layout panel that has 3 sections.</p> <p>Section #1 is a set of 2 controls .. two dropdown controls, they are always in the same order, always visible in all instances</p> <p>Section #2 is a set of 5 different controls ... based on a series of factors, 1 of the 5 controls is made visible, all others have the Visible propert set to false</p> <p>Section #3 is a set of 3 controls .. like Section #1 they are always in the same order and always visible.</p> <p>So what this boils down to is that Section #2 is variable, the others are static.</p> <p>The problem comes with Section #2 ... when I change the visibility of any of the controls they appear just fine (I.E. ... Section 1 then Section 2 then Section 3) ... EXCEPT when I set the combobox control to be Visible .... in that case, and ONLY in that case .. the order becomes (Section 1 then Section 3 then Section 2) ... I can't figure out what would cause the ordering to be out of sync in just that case.</p> <p>What I basically do at the beginning of my method is set ALL controls to Visible = false ... then I set Section 1 Visible = true ... then loop through the conditions of Section 2 and set the appropriate controls Visible = true and finally set Section 3 controls Visible = true.</p> <p>Does anyone have any experience with the flow layout panel control ordering? I can't figure out what is happening for the ComboBox.</p>
 

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