[CROSS POST] Strange problem with control order

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
 
S

Stoitcho Goutsev \(100\) [C# MVP]

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top