问题
单项选择题
假定表单上有一个标签,名为Label1,为了使该标签透明并且没有边框,正确的属性设置为______。
A.ThisForm.Label1.BackStyle=0 ThisForm.Label1.BorderStyle=1
B.ThisForm.Label1.BackStyle=0 ThisForm.Label1.BorderStyle=0
C.ThisForm.Label1.BackStyle=True ThisForm.Label1.BorderStyle=True
D.ThisForm.Label1.BackStyle=False ThisForm.Label1.BorderStyle=False
答案
参考答案:B
解析:[分析] 本题考查的是标签控件的属性。要使标签透明,可设置其BackStyle属性,当其取值为0(Transparent)时,背景透明,取值为1(Opaque)时,背景不透明;要使标签带有边框,可设置其BorderStyle属性,当其取值为O(None)时,表示无边框,当其取值为1(Fixed Single)时,表示单实线边框。