如何在所有其他控件下方显示面板控件?

Mar*_*cus 1 .net c# panel winforms

我在WinForms应用程序中遇到面板控件问题.如何让它在其他一切之下呢?现在,文本在面板下.

Chr*_*isF 10

在设计视图中,选择面板,然后单击工具栏或上下文菜单中的"发送至后退"选项.

在工具栏上发送回来

在上下文菜单中发送回

这样做是为了更改控件添加到表单的顺序.

如果我有三个控件,一个CheckBox,LabelButton我看到了.Designer.cs文件的代码:

        this.Controls.Add(this.checkBox1);
        this.Controls.Add(this.button1);
        this.Controls.Add(this.label1);
Run Code Online (Sandbox Code Playgroud)

发送CheckBox到后面重新排序列表,以便最后添加.

        this.Controls.Add(this.button1);
        this.Controls.Add(this.label1);
        this.Controls.Add(this.checkBox1);
Run Code Online (Sandbox Code Playgroud)

因此,ControlCollection必须以相反的顺序绘制控件中的控件,因为末端的控件是后面的控件,必须首先绘制,以便它们可以被前面的控件正确遮挡.