我试图在MouseDown时向前移动一个面板,目前我正在使用它
panel.BringToFront()
然后,当我想要将面板发回时,我想尝试使用
panel.SendToBack()
当我跑步时,它向前移动面板,但不会再向后发送它。除了使用BringToFront或SendToBack之外,还有其他方法可以在Z轴上操作控件。
我正在使用VB Express 2008。
答案 0 :(得分:1)
是的尝试:
Me.panel.Parent.Controls.SetChildIndex(me.panel, zIndex) 'Put instead of zIndex the Zorder number that you want