Solved

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

Posted on 2007-03-28
2
1,942 Views
Last Modified: 2008-01-09
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
Comment
Question by:Cyber-Drugs
2 Comments
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 500 total points
ID: 18812775
You should just need Control.BringToFront():
http://msdn2.microsoft.com/en-us/library/system.windows.forms.control.bringtofront.aspx

   myPic.BringToFront();
0
 
LVL 4

Author Comment

by:Cyber-Drugs
ID: 18812825
That did the trick, cheers! :o)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now