万能百科  > 计算机   > 

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

2021-07-14   

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

A.Prirate Sub Commandl Click() CommonDialogDialogTitle="new Caption" CommonDialogShowFont End Sub

B.Private Sub Commandl+Click() CommonDialogDialogTitle="new Caption" CommonDialogShowOpen End Sub

C.Private Sub Commandl_Click() CommonDialogDialogTitle="new Caption" CommonDialogShowHelp End Sub

D.Private Sub Commandl_Click() CommonDialogDialogTitle="new Caption" CommonDialogShowColor End Sub

正确答案:

B

参考解析:

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

词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。

标签