透明标签 [英] tranparent label
本文介绍了透明标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图使标签透明,以便背景显示其背后的内容
i was trying to make my label transparent so that the background show what''s behind it
推荐答案
您的背景,表格,图片框???
表格(在form_load中):
What''s your background, your Form, a Picturebox???
Form (in form_load):
Label1.Parent = Me
Label1.BackColor = Color.Transparent
图片框(在form_load中):
Picturebox (in form_load):
Label1.Parent = PictureBox1
Label1.BackColor = Color.Transparent
请指定您的Visual Basic版本
是VB.NET吗?
如果是这样,请将标签的BackColor
属性设置为Transparent
在VB6中,
将BackStyle
属性设置为0(透明)
VB.NET中名为Label1
的标签的代码为
Please Specify Your Visual Basic Version
Is it VB.NET?
If so, set theBackColor
property of the label to Transparent
IN VB6,
Set theBackStyle
Property to 0(Transparent)
The code in VB.NET for a label namedLabel1
would be
Label1.BackColor=Color.Transparent
VB6中名为Label1
的标签的代码为
The Code in VB6 for a label named Label1
would be
Label1.BackStyle=0
本文的代码包含一个透明的标签控件,我发现它在很多情况下都很有用:
SimpleLine线和框图形控件 [
This article''s code contains a transparent label control that I have found useful on numerous occasions:
SimpleLine line and box graphics controls[^]
这篇关于透明标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文