Solved

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

Posted on 2007-03-28
2
1,996 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
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!
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

679 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