在窗体上画一个名称为CommonDialogl的通用对话框,一个名为Command1的命令按钮。要求单击命令按钮时,打开一个保存文件的通用对话框。该窗体的标题为“Save”,默认文件名为“SaveFile”,在“文件类型”栏中显示*. txt,则能够满足上述要求的程序是______。A.Private Sub Command1_C1ick() CommonDialogl. FileName="SayeFile" CommonDialogl. Filter="All Files|*. *|(*. txt)|*. txt|(*. doe)|*. doc" CommonDialogl. FilterIndex=2 CommonDialogl. DialogTitle="Save" CommonDialogl. Action=2 End SubB.Private Sub Command1_Click() CommonDialogl. FileName="SaveFile" CqmmonDialogl. Filter="All Files|*. *|*. txt)|*. txt|(*. doe)|*. doff" CommonDialogl. FilterIndex=1 CommonDialegl. DialogTitle="Save" CommonDialogl. Action=2 End SubC.Private Sub Command1_Click() CommonDialogl. FileName="Save" CommonDialogl. Filter="All Files|*. *|(*. txt)|*. txt|(*. doe)|*. doe" CommonDialogl. FilterIndex=2 CommonDialogl. DialogTitle="SaveFile" CommonDia]ogl. Action=2 End SubD.Private Sub Command1_Click() CommonDialogl. FileName="SaveFile" CommenDialogl. Filter="All Files|*. *|(*. txt)|*. txt|(*. doc)|*. doe" CommonDialogl. FilterIndex=1 CommonDialogl. DialogTitle="Save" CommonDialogl. Action=1 End Sub
在窗体上画一个名称为CommonDialogl的通用对话框,一个名为Command1的命令按钮。要求单击命令按钮时,打开一个保存文件的通用对话框。该窗体的标题为“Save”,默认文件名为“SaveFile”,在“文件类型”栏中显示*. txt,则能够满足上述要求的程序是______。
A.Private Sub Command1_C1ick() CommonDialogl. FileName="SayeFile" CommonDialogl. Filter="All Files|*. *|(*. txt)|*. txt|(*. doe)|*. doc" CommonDialogl. FilterIndex=2 CommonDialogl. DialogTitle="Save" CommonDialogl. Action=2 End Sub
B.Private Sub Command1_Click() CommonDialogl. FileName="SaveFile" CqmmonDialogl. Filter="All Files|*. *|*. txt)|*. txt|(*. doe)|*. doff" CommonDialogl. FilterIndex=1 CommonDialegl. DialogTitle="Save" CommonDialogl. Action=2 End Sub
C.Private Sub Command1_Click() CommonDialogl. FileName="Save" CommonDialogl. Filter="All Files|*. *|(*. txt)|*. txt|(*. doe)|*. doe" CommonDialogl. FilterIndex=2 CommonDialogl. DialogTitle="SaveFile" CommonDia]ogl. Action=2 End Sub
D.Private Sub Command1_Click() CommonDialogl. FileName="SaveFile" CommenDialogl. Filter="All Files|*. *|(*. txt)|*. txt|(*. doc)|*. doe" CommonDialogl. FilterIndex=1 CommonDialogl. DialogTitle="Save" CommonDialogl. Action=1 End Sub