Results 1 to 3 of 3

Thread: transparent picturebox

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2012
    Posts
    142

    transparent picturebox

    hello, is it possible to make one picturebox transparent, so you see the picturebox' picture underneath it? thanks

  2. #2
    PowerPoster boops boops's Avatar
    Join Date
    Nov 2008
    Location
    Holland/France
    Posts
    3,201

    Re: transparent picturebox

    Yes. Make the background color of the top picture box Color.Transparent, and make the underneath picture box the Parent of the top one. You will need to alter the Location of the top box so that it is relative to the parent instead of the form. For example:

    Code:
    PictureBox2.BackColor = Color.Transparent
    PictureBox2.Parent = PictureBox1
    PictureBox2.Location = Point.Empty
    BB

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2012
    Posts
    142

    Re: transparent picturebox

    my image is a bitmap, I draw it with *.drawimage(myimage, 10, 10, 1, 1)
    Parent is not a member of bitmap. so how do I draw it over any other control?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width