下列“CommonDialog1”控件程序代码,Commondialog1.Action=1,代表()。 A.文件另存为B.打印C.打开文件D.色彩
下列“CommonDialog1”控件程序代码,Commondialog1.Action=1,代表()。
A.文件另存为
B.打印
C.打开文件
D.色彩
相关考题:
假设在窗体Form1上加一个通用对话框控件CommonDialog1,用语句CommonDialog1.ShowOpen建立打开文件对话框,那么从该对话框中单击“确定”按钮退出对话框时,为了得到用户所选择的文件的路径以及文件名,应该使用CommonDialog1的属性是 ______ 。A.DefaultEXTB.DialogTitleC.FileNameD.FileTitle
在窗体上画一个名为CommonDialog1的通用对话框,一个名称为Command1的命令按钮。要求单击命令按钮时,打开一个保存文件的通用对话框窗口。该窗口的标题为“Save”,默认文件名为“SaveFile",在“文件类型”栏中显示“*.txt”。能够满足上述要求的程序是 ______。A.Private Sub Command1_ Click() CommonDialog1. FileName = "SaveFile" CommonDialog1. Filter = "All Files | *.* |*.txt *.txt| *.doc| *.doc" CommonDialog1. Filterlndex = 2 CommonDialog1. DialogTitle = "Save" CommonDialog1. Action = 2 End SubB.Private Sub Command1_Click() CommonDialog1. FileName = "SaveFile" CommonDialog1. Filter = "All Files |*.* | *.txt|*.txt|*.doc|*.doc" CommonDialog1. Filterlndex = 1 CommonDialog1. DialogTitle = "Save" CommonDialog1. Action = 2 End SubC.Private Sub Command1_ Click() CommonDialog1. FileName = "Save" CommonDialog1. Filter = "All Files |%* |*.txt|*.txt|*.doc|*.doc" CommonDialog1. Filterlndex = 2 CommonDialog1. DialogTitle = "Save" CommonDialog1. Action = 2 End SubD.Private Sub Command1_ Click() CommonDialog1. FileName = "SaveFile" CommonDialog1. Filter = "All Files |*.*|*.txt|*.txt|*.doc|*.doc" CommonDialog1. Filterlndex = 1 CommonDialog1. DialogTitle = "Save". CommonDialog1. Action = 1 End Sub
在窗体上画一个名称为CommonDialog1的通用对话框和一个名为Command1的命令按钮。要求实现这样一个功能:单击命令按钮后,打开一个通用对话框用于保存文件,其窗口标题为“保存”,默认文件名为Data,在“文件类型”栏中显示*.txt。下列程序中能实现以上功能的是______。A.Private Sub Command1_ Click() CommonDialog1. FileName = "Data" CommonDialog1. Filter = "All Files|*.|* |(*.txt)|(*.doc)|*.doc" CommonDialog1. Filterlndex = 2 CommonDialog1. DialogTitle = “保存” CommonDialog1. Action = 2 End SubB.Private Sub Command1_ Click() CommonDialog1. FileName = "Data" CommonDialog1. Filter = "All Files|*.*|(*.txt)|(*.doc)|*.doc" CommonDialog1. FilterIndex = 2 CommonDialog1. DialogTitle =“保存” CommonDialog1. Action = 1 End SubC.Private Sub Command1_ Click() CommonDialog1. FileName = "Data" CommonDialog1. Filter = "All Files|*.*|(*.txt)|(*.doe)|*.doc" CommonDialog1. FilterIndex = 1 CommonDialog1. DialogTitle = “保存” CommonDialog1. Action = 1 End SubD.Private Sub Command1_ Click() CommonDialog1. FileName = "Data" CommonDialog1. Filter = "All Files|*.*|(*.txt)|(*.doc)|*.doc" CommonDialog1. FilterIndex = 1 CommonDialog1. DialogTitle = “保存” CommonDialog1. Action = 2 End Sub
在窗体上画一个名称为CommonDialog1的通用对话框,一个名称为Command1的命令按钮,要求单击命令按钮时,打开一个保存文件的对话框,该窗口的标题为“Save”,缺省文件名称为“SaveFile”,在“文件类型”栏中显示*txt,则能够满足上述要求的程序是A.Private Sub Command1_Click ( ) CommonDialog1.FileName="SaveFile" CommonDialog1.Filter="AllFiles|*.*|(*.txt)|*.txt|(*.doC)|*.doc" CommonDialog1.FilterIndex=2 CommonDialog1.DialogTitle="Save" CommonDialog1.Action=2 End SubB.Private Sub Command1_Click ( ) CommonDialog1.FileName="SaveFile" CommonDialog1.Filter="AllFiles|*.*|(*.txt)|*.txt|(*.do C)|*.doc" CommonDialog1.FilterIndex=1 CommonDialog1.DialogTitle="Save" CommonDialog1.Action=2 End SubC.Private Sub Command1 Click ( ) CommonDialog1.FileName="Save" CommonDialog1.Filter="AllFiles|*.*|(*.txt)|*.txt|(*.do C)|*.doc" CommonDialog1.FilterIndex=2 CommonDialog1.DialogTitle="SaveFile" CommonDialog1.Action=2 End SubD.Private Sub Command1 Click ( ) CommonDialog1.FileName="SaveFile" CommonDialog1.Filter="AllFiles|*.*|(*.txt)|*.txt|(*.do C)|*.doc" CommonDialogl.FilterIndex=1 CommonDialog1.DialogTitle="Save" CommonDialog1.Action=1 End Sub
假定在窗体上建立一个通用对话框,其名称为CommonDialog1,用下面的语句可以建立一个对话框: CommonDialog1.Action=1 与该语句等价的语句是 ______。A.CommonDialog1.ShowOvenB.Commofidialog1.ShowSaveC.CommonDialog1.ShowColorD.CommonDialog1.ShowFont
窗体上有一个通用对话框控件CommonDialog1,有下列语句:CommonDialog1. Action = ShowFont其表示为 ______。A.显示“打开”对话框B.显示“另存为”对话框C.显示“颜色”对话框D.显示“字体”对话框
在窗体上建立一个通用对话框,名称为 CommonDialog1,用下面的语句可以建立一个对话框,CommonDialog1.Action=2 与该语句等价的语句是():A.CommonDialog1.ShowOpenB.CommonDialog1.ShowSaveC.CommonDialog1.ShowColorD.CommonDialog1.ShowFont