我如何在C#环境Visiual Studio 2013中简单地透明TextBox
问题描述:
如何在C#环境中简单透明TextBox Visiual Studio 2013
How do I simply Transparent a TextBox in C# environment Visiual Studio 2013
答
您可以通过在文本框构造函数中插入以下行来完成此操作
You can do it by inserting the following lines in the textbox constructor
this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
this.BackColor = Color.Transparent;
如果你还可以创建一个新的分部类你需要做很多这方面的参考就是这里
http://stackoverflow.com/questions/16050249/c-sharp-transparency-on-textbox [ ^ ]
试试这个。
Try this.
TextBox1.BackColor = Color.Transparent;
和是的,看看这个:制作透明控制 - 无闪烁 [ ^ ]
-KR
and yeah, look at this : Making Transparent Controls - No Flickering[^]
-KR
WPF - 它的m更容易做到这一点。
尝试
http://www.c-sharpcorner.com/uploadfile/mahesh/building-transparent-controls-in-wpf/ [ ^ ]
http://www.hanselman.com/blog/LearningWPFWithBabySmashMakingATransparentWindowWithSubstance.aspx [ ^ ]
WPF - its much easier to do this.
Try
http://www.c-sharpcorner.com/uploadfile/mahesh/building-transparent-controls-in-wpf/[^]
http://www.hanselman.com/blog/LearningWPFWithBabySmashMakingATransparentWindowWithSubstance.aspx[^]