单项选择题
假定已在窗体上画了多个控件,并有一个控件是活动的,为了在属性窗口中设置窗体的属性,预先应执行的操作是
A.单击窗体上没有控件的地方
B.单击任一个控件
C.不执行任何操作
D.双击窗体的标题栏
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
线性表L=(a1,a2,a3,…ai,…an),下列说法正确的是
A.每个元素都有一个直接前件和直接后件
B.线性表中至少要有一个元素
C.表中诸元素的排列顺序必须是由小到大或由大到小
D.除第一个元素和最后一个元素外,其余每个元素都有一个且只有一个直接前件和直接后件
点击查看答案&解析
单项选择题
在窗体中添加一个通用对话框,其名称为CommonDialog1,然后添加一个命令按钮。要求单击命令按钮时,打开一个保存文件的通用对话框。该窗口的标题为“打开”,在文件类型框中显示的是Text Files(*.txt)。则能够满足上述要求的程序是
A.Private Sub Command1_Click()
CommonDialog1. Flags=cdloFNHideReadonly
CommonDialogl. Filter="AllFiles(*.*)|*.*|TextFiles"&_
"(*.txt)|*.txt|BatchFiles(*.bat)|*.bat"
CommonDialog1.FilterIndex=1
CommonDialog1.ShowOpen
MsgBox CommonDialog1.FileName
End Sub
B.Private Sub Command1_Click()
CommonDialog1. Flags=cdloFNHideReadonly
CommonDialog1. Filter="AllFiles(*.*)|*.*|TextFiles"&_
"(*.txt)|*.txt|BatchFiles(*.bat)|*.bat"
CommonDialog1. FilterIndex=2
CommonDialog1. ShowOpen
MsgBox CommonDialog1. FileName
End Sub
C.Private Sub Command1_Click()
CommonDialog1. Flags=cdloFNHideReadonly
CommonDialog1. Filter="AllFiles(*.*)|*.*|TextFdes"&_
"(*.txt)|*.txt|BatchFiles(*.bat)|*.bat"
CommonDialog1.FilterIndex=1
CommonDialog1.ShowSave
MsgBox CommonDialog1.FileName
End Sub
D.Private Sub Command1_Click()
CommonDialog1. Flags=edloFNHideReadonly
CommonDialog1. Filter="AllFiles(*.*)|*.*|TextFiles"&_
"(*.txt)|*.txt|BatchFiles(*.bat)|*.bat"
CommonDialog1.Filterlndex=2
CommonDialog1.ShowSave
MsgBox CommonDialog1.FileName
End Sub
点击查看答案&解析
相关试题
设有如下程序: Private Sub Form_Clic...
设有程序: Option Base 1 Private S...
由Array函数建立的数组的名字必须是 【1...
在菜单编辑器中建立一个菜单,名称为mymenu...
设有如下表达式:10*x^2+5*x-2*...