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

admin2013-04-11  27

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

选项 A、Private Sub Command1_CliCk()              CommonDialog1.DialogTitle="new Caption"              CommonDialog1.ShowFont    End Sub
B、Private Sub Command1_Click()             CommonDialog1.DialogTitle="new Caption"             CommonDialog1.ShowOpen    End Sub
C、Private Sub Command1_Click()            CommonDialog1.DialogTitle="new Caption"            CommonDialog1.Show Help    End Sub
D、Private Sub Command1_Click()            CommonDialog1.DialogTitle="new Caption"            CommonDialog1.ShowColor    End Sub

答案B

解析 可以通过Dialog Title属性设置打开文件对话框的标题,使用ShowOpen方法设置通用对话框的类型为打开文件对话框。DialogTile属性指定对话框中标题栏的名称。“打开”对话框默认的标题是“打开”;“另存为”对话框默认的标题是“另存为”。
转载请注明原文地址:https://kaotiyun.com/show/2zQp777K
0

最新回复(0)