问题
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