FlowLayoutPanel control reordering

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • NickP

    FlowLayoutPanel control reordering

    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.


  • NickP

    #2
    Re: FlowLayoutPanel control reordering

    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:%23G7VHf8K GHA.2304@TK2MSF TNGP15.phx.gbl. ..[color=blue]
    > 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.
    >[/color]


    Comment

    Working...