单项选择题

A.设置text1控件的text属性值为“小明”
B.在按钮事件中执行text1.text=”小明”
C.在程序运行时,在text1文本框中输入“小明”
D.设置text1控件的Caption属性值为“小明”