试题与答案

在窗体form1 的Click事件过程中有以下语句: Label1. Captio

题型:单项选择题

题目:

在窗体form1 的Click事件过程中有以下语句:
Label1. Caption = "Visual Basic"
若本语句执行前,标签控件的Caption属性取默认值,则该标签控件的名称属性和Caption属性在执行本语句前的取值分别为 ______。

A.Label,Label1

B.Label,Caption

C.Label1,Label1

D.Caption,Label

答案:

参考答案:C

解析: 标签控件的Caption属性和名称属性的默认值都为Label1。

试题推荐
微信公众账号搜索答案