By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,734 Members | 832 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,734 IT Pros & Developers. It's quick & easy.

Moving Pictureboxs over each other (Transparency)

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a

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

P: n/a

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.