473,387 Members | 1,283 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

PictureBox not a container

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
Sep 13 '07 #1
0 1344

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Léopold VALLAURI | last post by:
Hi I have an Access file where is stored some JPG picture in an OLE Field Picture are stored with and OLE Container by access I would like to exract the image from field but without the OLE...
1
by: Richard Saville | last post by:
I am trying to make a transparent pictureBox. MSDN says to use this.SetStyle(ControlStyles.SupportsTransparentBackColor, true); for the form and this.pictureBox1.BackColor = Color.Transparent; for...
0
by: Johann Blake | last post by:
I am creating PictureBox controls at runtime in code and not at design time. These controls do get created and appear. These controls have a form as their container. Not all of the controls I...
5
by: Sharon | last post by:
I’m writing a Windows application. In the form I have a Panel and inside the panel I have a PictureBox control. I’m loading the PictureBox control with BMP image that has the following...
2
by: David Ricker | last post by:
I have created a PictureBox control which can have it's Image property directly bound to an image field in a database. This works perfectly for showing the images that are in the database. When I...
2
by: Wade | last post by:
Is there a way in VB.NET to use a PicureBox as a container like in VB 6? I have an image that I want to place in a container and have transparent labels "float" on top of the image and use them as...
9
by: SStory | last post by:
I have a picturebox in my About form. would like to have a link to my company website. Wanted the links background to be transparent. It seems that no one knows how to do this. Have asked...
6
by: Rich | last post by:
Hello, I want to simulate the dynamic thumbnail display of Windows Explorer (winxp) on a form or pannel container. If I place a picture box on my container form/pannel and dimension it to the...
4
by: Justin | last post by:
I created a panel. Then I created 4 picturebox's inside that panel. I added an image to each picturebox and I can see the images in my project. However when I run my project I don't see the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.