简体   繁体   English

如何使PictureBox透明?

[英]How to make a pictureBox transparent?

Hello Im trying to do in my project 2 layers of pictureBox controls. 您好我想在我的项目中做2层pictureBox控件。

1 is for a moving object and the other 1 to draw a line. 1用于移动物体,另1用于画线。

However the upper PB is hidding the lower PB even if I set the BackColor to transparent.. 但是,即使我将BackColor设置为透明,上层PB也会掩盖下层PB。

is there any other way or a special control to overcome this problem? 是否有其他方法或特殊控制来克服此问题?

I searched for some answers in google but didnt found what I need. 我在Google中搜索了一些答案,但没有找到我需要的东西。

也许您可以使用THIS CODE设置pictureBox的不透明度。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM