Vb.net透明按钮 [英] Vb.net transparent buttons

查看:120
本文介绍了Vb.net透明按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试做一些按钮,背景是透明的,但仍然看到按钮的文字,这是我和我的朋友正在尝试制作的游戏,我正在构建主菜单的界面马上。我也是编程的新手,我正在努力学习我的自我



以下两个例子都没有用,即使他们确实工作了他们可能会覆盖整个按钮,你看不到它的任何东西



我尝试了什么:



I've tried to do some buttons were the background is transparent but still see the text of the button, this is for a game that me and my friends are trying to make and i'm building the interface of the main menu right now. I'm also new to programming and i'm trying to learn by my self

both examples below just didn't work and even if they did work they probably would cover up the entire button to the point were you cant see anything of it

What I have tried:

Me.Button1.visibility = Not Me.Button1.visibility











and

button1.BackColor = Color.Transparent

推荐答案

您必须创建自己的自定义控件。如何做到这一点可以在这里看到:

具有移动字幕的透明/半透明标签控件 [ ^ ]
You have to create your own customized Control. How this could be done is be seen here :
A Transparent/Translucent Label Control with Moving Caption[^]


这篇关于Vb.net透明按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆