单选题 VB
题号 #485190

假定通用对话框的名称为CommonDialogl,命令按钮的名称为Command1,则单击命令按钮后,能使打开的对话框的标题为“New Title”的事件过程是(  )
A.Private Sub Command l_Click()
CommonDialog1.DialogTitle=“New Title”
CommonDialog 1.ShowPrinter
End Sub
B.Private Sub Command1_Click()
CommonDialog t.DialogTitle=“N New Title”
CommonDialog1.ShowFont
End Sub
C.Private Sub Command l_Click()
CommonDialog 1.DialogTitle=“N New Title”
CommonDialog1.ShowOpen
End Sub
D.Private Sub Command1_Click()
CommonDialog1.DialogTitle=“N New Title ”
CommonDialog 1.ShowColor
End Sub

进入在线模考

参考答案

C

答案解析

ShowPrinter、ShowFont、ShowColor分别显示打印对话框、字体对话框和颜色对话框.当显示这几种对话框时,它们会忽略DialogTitle属性的设置。当显示“打开”对话框或“另存为”对话框时.对话框的标题为DialogTitle属性的值。所以,答案是C。

你可能感兴趣的试题

A.下拉式菜单和弹出式菜单都用菜单编辑器建立
B.在多窗体程序中,每个窗体都可以建立自己的菜单系统
C.除分隔线外,所有菜单项都能接收Click事件
D.如果把一个菜单项的Enabled属性设置为False,则该菜单项不可见
找试题 · 找答案 · 找资料 在线模考