Order of controls in a form's Control property in C#

后端 未结 5 1436
北海茫月
北海茫月 2021-01-18 19:35

I am having a peculiar problem with the order in which FlowLayoutPanels are added in to the form\'s controls property. This is what I tried,

I added

5条回答
  •  再見小時候
    2021-01-18 19:50

    I know this is quite an old question, but...

    You might want to use SetChildIndex. e.g. this.Controls.SetChildIndex(button1, 0);

提交回复
热议问题