C# PictureBox Won't Display
I placed a PictureBox
inside a GroupB开发者_JAVA技巧ox
and it was working fine but now, nothing. I tried moving it to the front of the form, the Visible property is set to true, and set it's border to FixedSingle
just in case it was an issue with the image file but nothing displays. This seems very strange. Any ideas what it could be?
Thanks!
Make sure your GroupBox
is visible, if it where invisible the controls inside it will be invisible too.
Also make sure that your GroupBox
is in front of other controls in the form, and so to the pictureBox
, it should be in front of other controls within the groupBox
itself.
However if you are referring to the image inside the pictureBox
that is not displayed, that is a different story then, you should make sure that you are assigning the pictureBox.Image
or pictureBox.BackgroundImage
精彩评论