网友您好, 请在下方输入框内输入要搜索的题目:
在窗体上画一个名称为CommonDialogl的通用对话框,一个名称为Command1的命令按钮。要求单击命令按钮时,打开一个保存文件的通用对话框。该窗口的标题为Save,默认文件名为SaveFile,在“文件类型”栏中显示*.txt。则能够满足上述要求的程序是 ______。
A.Private Sub Command Click() CommonDialogl.FileName="SaveFile" CommonDialogl.Filte="All Files|*.*|(*.txt)|*.txt|(*.doC)|*.doc" CommonDialogl.FilterIndex=2 CommonDialogl.DialogTitle="Save" CommonDialogl.Action=2 End Sub
B.Private Sub Commandl_Click() CommonDialogl. FileName="SaveFile" CommonDialogl. Filter= "All Files| *. * | (*. txt)[*. txt| *. doc| *. doc" CommonDialogl. FilterIndex= 1 ComonDialogl. DialogTitle = "Save" CommonDialogl. A
C.Private Sub Cmmandl_Click() CommonDialogl. FileName= "Save" CommonDialogl. FiLter="All Files | *. * |(*. txt)|*. txt|(*. doC)|*. doc" CommonDialogl. FilterIndex= 2 CommonDialogl. DialogTitle = "SaveFile" CommonDialogl. A
D.Private Sub Commandl_Click() CommonDialogl. FileName = "SaveFile" CommonDialogl. Filter= "All Files|*. *|(*. txt)|*. txt| (*. doC)|*. doc" CommonDialogl. FilterIndex=1 CommonDialogl. DialogTitle= "Save" CommonDialogl. Ac
参考答案