全部题库 / VB / 试题详情
单选题 VB
2014-02-18

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

A.Private Sub Command1_Click()
CommonDialog1.DialogTitle ="new Caption"
CommonDialog1.ShowFont
End Sub
B.Private Sub Command1Click()
CommonDialog1.DialogTitle ="new Caption"
CommonDialog1.ShowOpen
End Sub
C.Private Sub Command1_Click()
CommonDialog1.DialogTitle ="ne w Caption"
CommonDialog1.ShowHelp
End Sub
D.Private Sub Command1_Click()
CommonDialog1.DialogTitle ="new Caption"
CommonDialog1.ShowColor
End Sub

参考答案

B

答案解析

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

你可能感兴趣的试题