473,508 Members | 2,140 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Moving Pictureboxs over each other (Transparency)

Hi,

After the great help I received to create PictureBox arrays I now have
another problem.

I want to be able to position transparent pictureboxes (with a small
rectangle drawn in them) next to each other. However if they overlap
they do obsure the picturebox underneath, even though the form
background is still visible.

I have drawn the rectangle on using the FillRectangle graphics to draw
on an image object, then copied that to the picturebox.

Any ideas how to get the pictureboxes transparent but not obscure the
ones below it?

Toby.

Jan 4 '07 #1
2 1448

to**@mkkbb.f9.co.uk wrote:
Hi,

After the great help I received to create PictureBox arrays I now have
another problem.

I want to be able to position transparent pictureboxes (with a small
rectangle drawn in them) next to each other. However if they overlap
they do obsure the picturebox underneath, even though the form
background is still visible.

I have drawn the rectangle on using the FillRectangle graphics to draw
on an image object, then copied that to the picturebox.

Any ideas how to get the pictureboxes transparent but not obscure the
ones below it?

Toby.
Try setting the BackColour property to Transparent. Also, do your
images have transparency in them?

Jan 4 '07 #2

lo*********@gmail.com wrote:
Try setting the BackColour property to Transparent. Also, do your
images have transparency in them?
The backColour property is set to that. There are no images int he
pictureboxes apart from the drawn rectangles. The picturebox is 25x25
and the rectangle is 10x10 (so you can see around the edge).

The pictureboxes that move are designed at run-time and added to the
PictureBox1 object collection, so you can see PictureBox1 image through
the small pictureboxes, but not a small picturebox through another
small picturebox (does that make sense?).

Toby.

Jan 4 '07 #3

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

Similar topics

3
3848
by: Mr. x | last post by:
Hello, I would like that my image's background color will be transparent. What I have is only paintbrush. My image is *.jpg format (I have tried to save it as *.gif format, and I got less...
12
14839
by: John | last post by:
I am currently using one of the IE hacks to give a PNG image full alpha transparency. But I wanted to move as much of this data to a .CSS as possible to lighten the load in the HTML as it is uses...
20
4472
by: Nathan Sokalski | last post by:
I am trying to create graphics with GDI+ that include transparency. However, the transparency never seems to show up, even though my colors have an alpha value of 0. How can I generate a graphic...
6
3643
by: tommaso.gastaldi | last post by:
In a previous post I have been asking about a way to test Alpha Transparency. Bob and Michael have kindly provided some ideas. Here I would like to share the function I have prepared, for the...
1
2696
by: dragze | last post by:
Hi, On one of the pages of my site i use two javascripts, one makes transparency of png's work in IE, and the other embeds a flash player. Now use one of the scripts it works fine, use both and...
15
2417
by: mcjason | last post by:
I saw something interesting about a grid pair puzzle problem that it looks like a machine when you find each that work out the way it does and say with all the others that work out the way they...
0
7227
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,...
0
7127
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7391
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...
0
5633
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,...
1
5056
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...
0
4713
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...
0
3204
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
768
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
424
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.