在窗体上画一个名为CommonDialog1的通用对话框,一个名称为Command1

题型:单项选择题

问题:

在窗体上画一个名为CommonDialog1的通用对话框,一个名称为Command1的命令按钮。要求单击命令按钮时,打开一个保存文件的通用对话框窗口。该窗口的标题为“Save”,默认文件名为“SaveFile",在“文件类型”栏中显示“*.txt”。能够满足上述要求的程序是 ______ 。

A.Private Sub Command1_ Click()CommonDialog1. FileName = "SaveFile"CommonDialog1. Filter = "All Files | *.* |*.txt *.txt| *.doc| *.doc"CommonDialog1. Filterlndex = 2CommonDialog1. DialogTitle = "Save"CommonDialog1. Action = 2 End Sub

B.Private Sub Command1_Click()CommonDialog1. FileName = "SaveFile"CommonDialog1. Filter = "All Files |*.* | *.txt|*.txt|*.doc|*.doc"CommonDialog1. Filterlndex = 1CommonDialog1. DialogTitle = "Save"CommonDialog1. Action = 2 End Sub

C.Private Sub Command1_ Click()CommonDialog1. FileName = "Save"CommonDialog1. Filter = "All Files |%* |*.txt|*.txt|*.doc|*.doc"CommonDialog1. Filterlndex = 2CommonDialog1. DialogTitle = "Save"CommonDialog1. Action = 2 End Sub

D.Private Sub Command1_ Click()CommonDialog1. FileName = "SaveFile"CommonDialog1. Filter = "All Files |*.*|*.txt|*.txt|*.doc|*.doc"CommonDialog1. Filterlndex = 1CommonDialog1. DialogTitle = "Save".CommonDialog1. Action = 1 End Sub

考点:计算机等级考试VISUALBASIC菜单与对话框
题型:单项选择题

有学者认为:“古代雅典政治建立在一种非常不民主的基础之上。” 下列雅典民主政治鼎盛时期的史实,可以支持该论断的是

A.居民中奴隶数量多于自由民

B.国家管理权由不同素养的人共享

C.不少功勋卓著的公民被流放

D.第四等级不能参加五百人会议

题型:单项选择题

下列MgCl2的电子式中,正确的是[ ]

A.

B.

C.

D.

题型:单项选择题

影响片剂中药物吸收的剂型因素不包括()

A.片重差异

B.片剂的崩解度

C.药物的颗粒大小

D.片剂的溶出度

E.片剂的处方组成

题型:单项选择题

液氧中的乙炔等碳氢化合物含量过高时,应采取的措施?

题型:单项选择题

如果企业是某产品或服务的终端用户,但是供应商只对批发商或其它中介提供服务,这个供应商就不是合适的选择对象。

更多题库