问题 单项选择题

下列控件属性中,属性值的类型不相同的一项是( )。

A.Label控件的Enabled属性与TextBox控件的Enabled属性

B.OptionButton控件的Value属性与CheckBox控件的Value属性

C.Command控件的Default属性与Command控件的Cancel属性

D.Command控件的Visible属性与Form控件的Visible属性

答案

参考答案:B

解析: CheckBox控件的Value属性取值是0、1或2; OptionButton控件的Value属性取值是True或False。Label控件和 TextBox控件的Enabled属性都是布尔型;Command控件的Default属性和Cancel属性都是布尔型;Command控件的Form的Visible属性都是布尔型。

选择题
问答题 简答题