Coming from VB6 a PictureBox was a container for other controls. This
doesn't seem to be the case with .NET. In light of that can someone comment
on the following....
I'm creating an app that loads a Form to maximum screen size. On the Form I
have a PictureBox control that also maxs out to the screen's full
resolution. I then randomly load images into the PictureBox. What I was
hoping to do is have a Panel inside the PictureBox that would contain Labels
which were populated with data about the image. The Panel and Labels thereon
would have their background set as transparent. The text would hopefully
show through enough to be read but if it wasn't the user could move the
mouse over the Panel and have the background become black w/white text.
Anyway, that doesn't seem to work with a PictureBox. So I have instead used
two Panels. One Panel for maximizing to screen size and loading an image as
its backgroundimage property. The other Panel contains the Label controls.
This works but I can't help wondering what this latter setup loses over the
former I originally wanted. I can tell that there is a slight performance
knock using the latter. Eventually I would also include the image loading
with different styles, i.e. fade in or a blinds effect, etc., into whichever
object I end up using. Not sure if a Panel object would support loading an
image with different styles like that? Is there a way to achieve the former?
I'd much prefer to use a PictureBox if it is possible.
Any insight or comment appreciated.
JW