gpt4 book ai didi

vb.net - 如何让按钮背景透明?

转载 作者:行者123 更新时间:2023-12-02 01:37:41 24 4
gpt4 key购买 nike

我创建了一个按钮并在其上应用了图像(具有透明背景的.png)。
enter image description here
我的按钮背景设置为透明,但正如您所看到的,背景颜色仍然存在。
我怎样才能使这项工作正常进行?

最佳答案

尝试一下。

'Making Existing Button Transparent
btnKasa.FlatStyle = Windows.Forms.FlatStyle.Flat
btnKasa.FlatAppearance.BorderSize = 0
btnKasa.FlatAppearance.MouseDownBackColor = Color.Transparent
btnKasa.FlatAppearance.MouseOverBackColor = Color.Transparent
btnKasa.BackColor = Color.Transparent

关于vb.net - 如何让按钮背景透明?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27628216/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com