A PictureBox Problem

前端 未结 5 536
余生分开走
余生分开走 2020-11-27 07:36

I have a problem:

I have 3 picture boxes with 3 different images as in Image

what can i set to pictureBox3 so both images l

5条回答
  •  遥遥无期
    2020-11-27 08:21

    For starters, set the BackColor property of PictureBox3 to Transparent. This should work in almost all cases.

    You should also use an image with a transparent background instead of white so you do not have the white borders around your purple circle. (Recommended image format: PNG)


    Update
    Following the replies I got, it appears setting the BackColor to Transparent doesn't work. In that case, it's best you handle the Paint event of the PictureBox and do the painting of the new image yourself as Albin suggested.

提交回复
热议问题