WinForms Z-Order

This is a reminder to myself in the future.  When you need to adjust the z-order of controls on a WinForm, you can use the controls' SendToFront and SendToBack methods.  A better solution is to go to the control's container.  There in the container's Controls property is the SetChildIndex method that can then independently set the z-order of its contained controls.

This article is part of the GWB Archives. Original Author: Mark Treadwell

New on Geeks with Blogs