[CROSS POST] Strange problem with control order

  • Thread starter Thread starter Michael Crago
  • Start date Start date
M

Michael Crago

Hi there,

I have a Panel control containing 10 different controls which are all added
in the same order and then individually shown or hidden depending on the
data being displayed in the panel. My app uses C#.

The order of the controls in the Panel (as enumerated by foreach but using a
specific for index behaves exactly the same) remains the same as I show and
hide any control but a comboBox control. Changing the visibility of a
comboBox causes it to be promoted up the order of the Controls collection
(as viewed in the debugger).

Has anyone else seen this strange behaviour and do you have any suggested
fixes or workarouonds?

Many thanks...
Robert
 
Hi Michael,

Even though I wasn't be supprised if the combobox does this along of all
other oddities that it has, but I checked this and it was working fine for
me.

Can you post some sample demonstrating the problem?
 
Back
Top