Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我 MouseDown 时,我试图将面板向前移动,目前我正在使用 panel.BringToFront() 然后当我 MouseUp 我想将面板发回时,我正在尝试使用 panel.SendToBack() 当我运行时,它将面板向前移动,但不发送它又倒退了。除了使用 BringToFront 或 SendToBack 之外,还有其他方法可以在 Z 轴上操作控件吗?
panel.BringToFront()
panel.SendToBack()
我正在使用 VB Express 2008。
是的尝试:
Me.panel.Parent.Controls.SetChildIndex(me.panel, zIndex) 'Put instead of zIndex the Zorder number that you want