473,545 Members | 2,605 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Transparent Picture boxes

I have a couple of images I'm using to try and pretty up some forms.
They are PNG images with transparent parts. I have one of them partly
overlaying the other, but my problem is with the transparent parts: If
Image1 is over Image2, I cannot see Image2. The transparent parts of
the images are coloured with the background colour of the form, so it
seems that the transparency is somewhat respected - how do I get the
transparent part to show any controls (such as other picture boxes)
under the image?
Ages ago I had done some sprite animation in VB6 and a little bit when
Vb .NET first came out... I know it's possible to do what I want by
drawing to an image buffer etc etc... but it seems to be a lot more
work than I need since there's no animation and these images are not
likely to change much.

Nov 29 '06 #1
2 2348
Same applies to controls... is there any way to make a button
transparent so that the image below it is visible THROUGH the button? I
set it to have flat style and a transparent backcolour, and now the
background is whatever I make the parent containers', but I still can't
see the picturebox through the button.
Is this even possible?

Nov 29 '06 #2
Can't you just set the BackColor to transparent?

S

<lo*********@gm ail.comwrote in message
news:11******** **************@ h54g2000cwb.goo glegroups.com.. .
Same applies to controls... is there any way to make a button
transparent so that the image below it is visible THROUGH the button? I
set it to have flat style and a transparent backcolour, and now the
background is whatever I make the parent containers', but I still can't
see the picturebox through the button.
Is this even possible?

Nov 29 '06 #3

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

Similar topics

6
16634
by: AMcD | last post by:
Hi! Here's a piece of code: <?php Header('Content-type: image/png');
2
1809
by: Regnab | last post by:
I've got a YES/NO section of a report I'm making. Depending on certain values, I want to circle either YES or NO. I've got the code working so it'll show or hide the circle, but I can't seem to get the circle (which I drew in Adobe Photoshop because I want the handwriting look) to be transparent (ie show the Yes or the No in the middle of it)....
2
2060
by: Steve Barnett | last post by:
I've got a form on which there is a picture box with a picture in it. On top of that I place two labels and make their backgrounds transparent. What I expect to see is the picture showing through behind the labels, but what I actually get is the background of the labels painted in the background colour of the form. Can I have...
1
13107
by: Chris Auer | last post by:
I have been banging my head for a couple of hours now. No matter what I do the color that I make transparent is black. Here is the code I am using from MSDN. I have tried bitmaps, jpegs, gifs and new bitmaps created in code, but I cant get any image to go transparent. Thanks if you can help. // Create a Bitmap object from an image file....
1
1514
by: Minhua Fu | last post by:
Hi, I have a problem when I draw a transparent gif picture. I have an existing transparent gif picture, i want to modify the gif and save it to reponse.outstream. But the picture always keep black backgroup. Can anyone give me some suggestions? Following is my code. System.Drawing.Image img =
4
2960
by: Andre Nogueira | last post by:
Hi there. I have one question... How can I create a bitmap (programmatically), paint it to a picture box and have a transparent background? I don't know what will be below the picturebox because the user can move it around, so there could be a textbox, another picture, a button or nothing below the picture box. Setting the background color...
2
10968
by: Martin | last post by:
I've been complaing about the VB2005 Help-Information (or rather the lack of it) before, but when I was looking how to set the backstyle of a label control to "Transparent" I found that the VB2005 documentation has reached an all-time low (please note the part about the z-order): MSDN: In Visual Basic 6.0, the BackStyle property of the...
0
1697
by: jcvoon | last post by:
Hi: I'm using VS2005, I add my image into project resource file, and my picture box and button control reference the image from the project resource file, what is the default transparent color for the image so that the image in the picture box and button control can be paint transparently ? Currently I'm using Magenta in my image portion...
11
8297
by: vbt | last post by:
I am having difficult time drawing a image using Visual Studio Image Editor. I can draw the image and save it as .bmp file load it into a pictureBox image but when the program is run the background of the bmp is not Transparent. How can I achieve a transparent background?
0
7496
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7685
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7941
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6014
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5354
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5071
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3467
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1916
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1039
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.