开发者

Making a TextBox Transparent [duplicate]

开发者 https://www.devze.com 2022-12-10 23:14 出处:网络
This question already has answers here: 开发者_如何学运维Transparency for windows forms textbox
This question already has answers here: 开发者_如何学运维 Transparency for windows forms textbox (7 answers) Closed 8 years ago.

I have a TextBox in my Form that I want to let it be tranparent and show a picture that is in a PictureBox, behind it, but how I can do this? Thanks.


Not too complex, after some searching on StackOverflow, I found this answer.

Basically, you need to subclass TextBox and in its constructor add the appropriate style.

Final stpe, set its BackColor to Transparent. Hope it helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号