单选题
假定通用对话框的名称为CommonDialogl,命令按钮的名称为Commandl,则单击命令按钮后,能使打开的对话框的标题为"New Title"的事件过程是______。
A、
Pdvate Sub Commandl_click() CommonDialogDialogTitle="New Title" CommonDialogShowPrinter End Sub
B、
Private Sub Cormnandl_click() CommonDialogDialogTitle="New Title" CommonDialogShowFont End Sub
C、
Private Sub Commandl_click() CommonDialogDialogTitle="New Title" CommonDialogShowOpen End Sub
D、
Pfivate Sub Commandl_click() CommonDialogDialogTitle="New Title" CommonDialogShowColor End Sub
【正确答案】
C
【答案解析】
[评析] 本题考的是CommonDialog控件,其中ShowOpen方法为显示“打开”对话框,ShowPrinter方法为显示“打印”或“打印选项”对话框,ShowFont方法为显示“字体”对话框,ShowColor方法为显示“颜色”对话框。所以本题答案为C。
提交答案
关闭