网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
在窗体上建立一个通用对话框,其名称为CommonDialog1,然后再添加一个命令按钮,并编写如下事件过程:
PrivateSubCommand1_Click()
CommonDialog1.Flags=cdlOFNHideReakOnly
CommonDialog1.Filter="AllFiles(*.*)|*.*|TextFiles"&"|(*.txt)|*.txt|BatchFiles(*.bat)|*.bat"CommonDialog1.FilterIndex=2CommonDialog1.ShowOpen
MsgBoxCommonDialog1.FileNameEndsub
程序运行后,单击命令按钮,将显示一个"打开"对话框,此时在"文件类型"框中显示的是()
A、AllFiles(*.*)
B、TextFiles(*.txt)
C、BatchFiles(*.bat)
D、不确定
参考答案
更多 “ 在窗体上建立一个通用对话框,其名称为CommonDialog1,然后再添加一个命令按钮,并编写如下事件过程:PrivateSubCommand1_Click()CommonDialog1.Flags=cdlOFNHideReakOnlyCommonDialog1.Filter="AllFiles(*.*)|*.*|TextFiles"&"|(*.txt)|*.txt|BatchFiles(*.bat)|*.bat"CommonDialog1.FilterIndex=2CommonDialog1.ShowOpenMsgBoxCommonDialog1.FileNameEndsub程序运行后,单击命令按钮,将显示一个"打开"对话框,此时在"文件类型"框中显示的是()A、AllFiles(*.*)B、TextFiles(*.txt)C、BatchFiles(*.bat)D、不确定 ” 相关考题
考题
在窗体上画一个通用对话框,其名称为 CommonDialog1 ,然后画一个命令按钮,并编写如下事件过程:Private Sub Command1_Click()CommonDialog1.Filter="All Files(*.*)|*.*Text Files"_"(*.txt)|*.txt| Executable Files(*.exe)|*.exe"CommonDialog1.Filterindex=3CommonDialog1.Show OpenMsgBox CommonDialog1.FileNameEnd Sub程序运行后,单击命令按钮,将显示一个“打开”对话框,此时在“文件类型”框中显示的是( )。 A.All Files(*.*)B.Text files(*.txt)C.Executable Files(*.ext)D.不确定
考题
( 31 )在窗体上画一个通用对话框,其名称为 CommonDialog1 ,然后画一个命令按钮,并编写如下事件过程:Private Sub Command1_Click()CommonDialog1.Filter = "All Files (*.*)|*.*|Text Files" _"(*.txt)|*.txt| Executable Files(*.exe)|*.exe"CommonDialog1.FilterIndex = 3CommonDialog1.ShowOpenMsgBox CommonDialog1.FileNameEnd Sub程序运行后,单击命令按钮,将显示一个 “ 打开 ” 对话框,此时在 “ 文件类型 ” 框中显示的是A ) All Files(*.*)B ) Text Files(*.txt)C ) Executable Files(*.exe)D ) 不确定
考题
在窗体上画一个通用对话框,其名称为CommonDialog1,然后画一个名称为Command1的命令按钮,并编写如下事件过程:Private Sub Command1_ Click()CommonDialogFlags = cd10FNHideReadOnlyCommonDialogFilter= "All Files (*.*) |*.* |Text Files" "(*.txt |*.txt|Batch Files (*.bat)|*.bat)"CommonDialogFilterIndex = 1CommonDialog1.ShowOpenMsgBox CommonDialog1.FileNameEnd Sub程序运行后,单击命令按钮,将显示一个“打开”对话框,此时在“文件类型”框中显示的是 ______;如果在对话框中选择D盘temp 目录下的te1.txt 文件,然后单击“确定”按钮,则在信息框中显示的提示信息是______。
考题
在窗件上画一个命令按钮,其名称为Command1,然后编写如下事件过程: Private Sub Command1_Click() a=12345 Print Format S(a, "000. 00") End Sub 程序运行后,单击命令按钮,窗体上显示的是______。A.123.45B.12345.00C.12345D.00123.45
考题
假设在窗体上建立了一个通用对话框,其名称为CommonDialog1,然后画一个命令按钮Command1,并编写如下事件过程:PrivateSubCommand1_Click()CommonDialog1.Flags=4CommonDialog1.Filter=allfiles(*.*)|*.*|textFiles(*.Txt)|*.txt|BatchFilse(*.bat)|*.batCommonDialog1.FilterIndex=1CommonDialog 1.ShowOpenMsgBoxCommonDialog 1.FileNameEndSub程序运行后,单击命令按钮,将显示一个打开对话框,此时在文件类型对话框中显示的是( )A.AllFiles(*.*)B.出错C.BatchFiles(.bat)D.不确定
考题
在窗体上画一个命令按钮,其名称为Command1,然后编写如下事件过程: Private Sub Command1_Click( ) a=12345 Print Format $(a,"000.00") End Sub 程序运行后,单击命令按钮,窗体上显示的是A.123.45B.12345.00C.12345D.00123.45
考题
在窗体中添加一个名称为Commandl的命令按钮,然后编写如下事件代码: Pfivate Sub Command 1 Click( )窗体打开运行后,单击命令按钮,则消息框的输出结果是( )。A. 1B. 2C. 3D. 4
考题
在窗体上画一个通用对话框,其名称为CommonDialogl,然后画一个命令按钮,并编写如下事件过程: Private Sub Commandl_click() CommonDialogl.Friter="AllFiles(*.*)|*.*|Text Files"_ "(*.txt)|*.txt|Executable Files(*.exe)|*.exe" CommonDialog1.FilterIndex=3 CommonDA.AllFries(*.*)B.TextFiles(*.txt)C.Executable Fries(*.exe)D.不确定
考题
在窗体上画一个命令按钮,其名称为Command1,然后编写如下事件过程: Private Sub Command1_Click() a = 12345 Print Format$(a, "000.00") End Sub 程序运行后,单击命令按钮,窗体上显示的是A. 123.45B.12345.00C.12345D.00123.45
考题
在窗体中添加一个命令按钮(名为Commandl)和一个文本框(名为Textl),然后编写如下事件过程:
热门标签
最新试卷