我如何在C#环境Visiual Studio 2013中简单地透明TextBox [英] How do I simply Transparent a TextBox in C# environment Visiual Studio 2013
本文介绍了我如何在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[^]
这篇关于我如何在C#环境Visiual Studio 2013中简单地透明TextBox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文