469,272 Members | 1,432 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,272 developers. It's quick & easy.

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 1292

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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Mr. x | last post: by
12 posts views Thread by John | last post: by
20 posts views Thread by Nathan Sokalski | last post: by
6 posts views Thread by tommaso.gastaldi | last post: by
15 posts views Thread by mcjason | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.