假定窗体上有一个标签,名为Label。为了使该标签透明并且没有边框,则正确的属性设 置为( )。

admin2020-06-30  22

问题 假定窗体上有一个标签,名为Label。为了使该标签透明并且没有边框,则正确的属性设    置为(    )。

选项 A、Labell.BackStyle=0   
Label 1.BorderStyle=0
B、Labell.BackStyle=1
Label 1.BorderStyle=1
C、Label 1.BackStyle=True
Labell.BorderStyle=True
D、Label 1.BackStyle=False
Label 1.BorderStyle=False

答案A

解析 标签控件的BackStyle属性是设置背景,当BackStyle属性值设置为0时,则标签为“透明”的,当BackStyle属性值设置为1时,则标签为将覆盖背景;标签控件的BorderStyle属性是设置标签的边框,当BorderStyle属性值设置为0时,则标签无边框,当BorderStyle属性值设置为1时,则标签有边框。因此选项A正确。
转载请注明原文地址:https://kaotiyun.com/show/nUHp777K
0

最新回复(0)