110,561
社区成员
发帖
与我相关
我的任务
分享
public void SendToBack()
{
if (this.parent != null)
{
this.parent.Controls.SetChildIndex(this, -1);
}
else if (this.IsHandleCreated && this.GetTopLevel())
{
SafeNativeMethods.SetWindowPos(new HandleRef(this.window, this.Handle), NativeMethods.HWND_BOTTOM, 0, 0, 0, 0, 3);
}
}
关键在SetChildIndex