VB.NET中的透明按钮 [英] Transparent button in VB.NET
问题描述
我在vb.net中创建了windows表单应用程序。我想创建一个透明按钮。是否有任何vb.net代码可用于使按钮透明?
我使该按钮透明意味着在背景中的任何内容必须对按钮透明。它应该像不透明一样工作。因为在后台可以有多个控件。
请建议一些vb.net代码。
< br $> b $ b
谢谢&此致,
Saurav Sinha
我的尝试:
Button1.FlatStyle = FlatStyle.Flat
Button1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent
Button1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent
Button1.BackColor = System.Drawing.Color.Transparent
有看看这个
vb.net - 如何使按钮背景透明? - Stack Overflow [ ^ ]
Hi,
I have created windows form application in vb.net. I want to create a transparent button. Is there any vb.net code available to make button transparent?
I have make that button transparent means whatever in background must be transparent for button. It should work like opacity. Because in background there can be multiple controls.
Kindly suggest some vb.net code.
Thanks & Regards,
Saurav Sinha
What I have tried:
Button1.FlatStyle = FlatStyle.Flat
Button1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent
Button1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent
Button1.BackColor = System.Drawing.Color.Transparent
Have a look at this
vb.net - How to make button background transparent? - Stack Overflow[^]
这篇关于VB.NET中的透明按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!