问题 单项选择题

下列( )事件过程可以将打开文件对话框的标题改变为“new Caption”。

A.Prirate Sub Commandl Click()
CommonDialogl.DialogTitle="new Caption"
CommonDialogl.ShowFont
End Sub

B.Private Sub Commandl+Click()
CommonDialogl.DialogTitle="new Caption"
CommonDialogl.ShowOpen
End Sub

C.Private Sub Commandl_Click()
CommonDialogl.DialogTitle="new Caption"
CommonDialogl.ShowHelp
End Sub

D.Private Sub Commandl_Click()
CommonDialogl.DialogTitle="new Caption"
CommonDialogl.ShowColor
End Sub

答案

参考答案:B

解析: 可以通过DialogTitle属性设置打开文件对话框的标题,使用ShowOpen方法设置通用对话框的类型为打开文件对话框。
DialogTile属性指定对话框中标题栏的名称。“打开”对话框默认的标题是“打开”;“另存为”对话框默认的标题是“另存为”。

单项选择题
单项选择题