FlowLayoutPanel control reordering

N

NickP

Hi there,

I am trying to implement drag and drop reordering of controls that are
placed in a FlowLayoutPanel control but unfortunately as the control
collection doesn't have an "insert" method I am having to use the
SetChildIndex method, which has some rather adverse side effects which can
lead to 2 items having the same index.

Would anyone know of another way to implement this functionality? For
such a great control this is really letting it down!

Nick.
 
N

NickP

Hi there,

Not to worry, it appears to have been my wrong. I was not aware that
the controls order is it's Z order so I was acquiring the wrong index to
start with, I should have been using GetChildIndex rather than IndexOf.

Cheers anyway.

Nick.
 

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