Is there a run-time way to make sure that labels etc appear on top and not underneath an image when changing their positions?
Printable View
Is there a run-time way to make sure that labels etc appear on top and not underneath an image when changing their positions?
Take a look at the ZOrder method.
Code:Label1.ZOrder vbBringToFront
Image1.ZOrder vbSendToBack
Thanks!
Keep in mind that you can only use the ZOrder method on controls for their respective layer. For example, since the PictureBox is in a layer higher than the Label, you cannot make a Label go in front of it.
Oh. Then is there a way to override this?