By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,083 Members | 1,608 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,083 IT Pros & Developers. It's quick & easy.

FlowLayoutPanel control reordering

P: n/a
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.
Feb 7 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.

"NickP" <a@a.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
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.

Feb 7 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.