Z-Index of Drawing Rectangle C#
问题 I have an application which uses the mouse to free-draw a rectangle on a picbox image. However the rectangle only shows up behind the picbox, rather than on top of it. Is there a property i can set which can fix this? (show rect on top of picbox image rather than behind it). Here is the code: System.Drawing.Graphics picboxGraphics; bool mDown = false; int mouseX; int mouseY; private void pictureBox1_MouseDown(object sender, MouseEventArgs e) { mDown = true; mouseX = e.X; mouseY = e.Y; }