问题 单项选择题

以下事件过程可以将打开的对话框的标题改变为“新标题”的是

A.Private Sub Command1_Click()
CommonDialog1.DialogTitle=“新标题”
CommonDialog1.ShowOpen
End Sub

B.Private Sub Command1_Click()
CommonDialog1.DialogTitle=“新标题”
CommonDialog1.ShowFont
End Sub

C.Private Sub Command1_Click()
CommonDialog1.DialogTitle=“新标题”
CommonDialog1.Show
End Sub

D.Private Sub Command1_Click()
CommonDialog1.DialogTitle=“新标题”
CommonDialog1.ShowColor
End Sub

答案

参考答案:A

解析: 本题主要考查对话框的方法。ShowFont和ShowColor分别对应字体对话框和颜色对话框。只有ShowOpen方法显示打开对话框。故选项A正确。可以通过属性名DialogTitle来改变对话框标题。

判断题
单项选择题