Making a TextBox Transparent [duplicate]

只谈情不闲聊 提交于 2019-11-28 08:22:33

问题


This question already has an answer here:

  • Transparency for windows forms textbox 5 answers

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.


回答1:


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.



来源:https://stackoverflow.com/questions/1716427/making-a-textbox-transparent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!