• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2131
  • Last Modified:

C# - Z-Index of Picturebox to great than Panel

Hi guys 'n gals,

I need some help with C#, not sure if what I want to do is even possible, so if it's not, that is also an acceptable answer. Basically, I want to change the Z-Index of a PictureBox so that it is above that of a Panel component.


Is this possible?

- If yes, then what code is needed?


Cheers!
0
Cyber-Drugs
Asked:
Cyber-Drugs
1 Solution
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
You should just need Control.BringToFront():
http://msdn2.microsoft.com/en-us/library/system.windows.forms.control.bringtofront.aspx

   myPic.BringToFront();
0
 
Cyber-DrugsAuthor Commented:
That did the trick, cheers! :o)
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now