将通用对话框commondialog1的类型设置为"颜色"对话框,可调用对话框的()方法
A.ShowOpen
B.ShowSave
C.ShowColor
D.ShowFont
- · 有3位网友选择 D,占比37.5%
- · 有2位网友选择 C,占比25%
- · 有2位网友选择 A,占比25%
- · 有1位网友选择 B,占比12.5%
A.ShowOpen
B.ShowSave
C.ShowColor
D.ShowFont
在窗体上画一个通用对话框,其名称为CommonDialog1,然后画一个命令按钮,并编写如下事件过程:
Private Sub Command1_Click()
CommonDialog1.Flags=vbOFNHideReadOnly
CommonDialog1.Filter="All Files(*.*)|*.*|Text Files(*.txt)|*.txt
CommonDialog1.FiherIndex=1
CommonDialog1.ShowOpen
MsgBox CommonDialog1.FileName
End Sub
程序运行后,单击命令按钮,将显示一个“打开”对话框,此时在“文件类型”框中显示的是
A.All Files(*.*)
B.Text Files(*.*)
C.*.txt
D.All Files(*.*)|Text Files(*.*)
在窗体上画一个通用对话框,其名称为CommonDialog1,然后画一个命令按钮,并编写如下事件过程。
Private Sub Command1_Click()
CommonDialog1.Flags=vbOFNHideReadOnly
CommonDialog1.Filter= "All Files(*.*) |*.*|Text Files(*.txt) |*.txt
CommonDialog1.FilterIndex=1
CommonDialog1.ShowOpen
MsgBox CommonDialog1.FileName
End Sub
程序运行后,单击命令按钮,将显示一个"打开"对话框,此时在"文件类型"框中显示的是
A.All Files(*.*)
B.Text Files(*.txt)
C.*.txt
D.All Files(*.*) |Text Files(*.*)
在窗体上画一个通用对话框,其名称为CommonDialog1,然后画一个命令按钮,并编写如下事件过程。
Private Sub Command1_Click()
CommonDialog1.Flags=vbOFNHideReadOnly
CommonDialog1.Filter= "All Files(*.*) |*.*|Text Files(*.txt)|*.txt
CommonDialog1.FilterIndex=1
CommonDialog1.ShowOpen
MsgBox CommonDialog1.FileName
End Sub
程序运行后,单击命令按钮,将显示一个"打开"对话框,此时在"文件类型"框中显示的是
A.All Files(*.*)
B.Text Files(*.txt)
C.Batch Files(*.bat)
D.All Files(*.*) |Text Files(*.txt)
在窗体上画一个通用对话框,其名称为CommonDialog1,然后画一个命令按钮,并编写如下事件过程: Private Sub Command1_Click() CommonDialog1.Flags=vbOFNHideReadOnly CommonDialog1.Filter="All Files(*.*)|*.*|Text Files(*.txt)|*.txt CommonDialog1FilterIndex=1 CommonDialog1ShowOpen MsgBox CommonDialog1FileName End Sub 程序运行后,单击命令按钮,将显示—个“打开”对话框,此时在“文件类型”框中显示的是
A.All Files(*.*)
B.Text Files(*.txt)
C.Batch Files(*.bat)
D.All Files(*.*)|Text Files(*.txt)
在窗体上画一个通用对话框,其名称为CommonDialog1,然后画一个命令按钮,并编写下列事件过程:
Private Sub Command1_Click()
CommonDialog1.Filter="All Files(*.*)|*.*|Text Files"_
&"(*.txt)|*.txt|Batch Files(*.bat)|*.bat"
CommonDialog1.FilterIndex=1
CommonDialog1.ShowOpen
MsgBox CommonDialog1.FileName
End Sub
程序运行后,单击命令按钮,将显示一个“打开”对话框,此时在“文件类型”框中显示的是【 】;如果在对话框中选择d盘temp目录下的tel.txt文件,然后单击“确定”按钮,则在MsgBox信息框中显示的提示信息是【 】。
A.AllFiles(*.*)
B.出错
C.BatchFiles(.bat)
D.不确定
下列事件过程:
Private Sub Command1_Click()
CommonDialog1. 【 12 】 =" 打开文件 "
CommonDialog1.Filter="All Files(*.*)|*.*"
CommonDialog1.InitDir="C :\ "
CommonDialog1.ShowOpen
End Sub
该程序的功能是 : 程序运行后 , 单击命令按钮 , 将显示 “ 打开 ” 文件对话框 , 其标题是 “ 打开文件 ” ,在 “ 文件类型 ” 栏内显示 “ AIl Files(*.*) ” ,并显示 C 盘根目录下的所有文件,请填空。
A.CommonDialog1.ShowOpen
B.CommonDialog1.Action
C.CommonDialog1.ShowOpen = 1
D.CommonDialog1.Action = ShowOpen
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!