首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
窗体上有1个名称为Label1的标签;1个名称为List1,且含有若干表项的列表框。为了使得单击List1中某个表项时,在Label1中相应地显示该表项,应使用的程序代码为
窗体上有1个名称为Label1的标签;1个名称为List1,且含有若干表项的列表框。为了使得单击List1中某个表项时,在Label1中相应地显示该表项,应使用的程序代码为
admin
2018-09-19
26
问题
窗体上有1个名称为Label1的标签;1个名称为List1,且含有若干表项的列表框。为了使得单击List1中某个表项时,在Label1中相应地显示该表项,应使用的程序代码为
选项
A、Private Sub List1_Click()
Label1.Caption = List1.Index
End Sub
B、Private Sub List1_Click()
Label1.Caption = List1.ListCount
End Sub
C、Private Sub List1_Click()
Label1.Caption = List1.Text
End Sub
D、Private Sub List1_Click()
Label1.Caption = List1.Selected
End Sub
答案
C
解析
单击List1中某个表项时触发List1_Click()事件。标签的Caption属性用于设置标签中所要显示的内容。列表框的text属性为List1中表项的正文,通过这个属性可以得到被选中的项目。因此选C)。
转载请注明原文地址:https://kaotiyun.com/show/G6Fp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
以下过程的功能是从数组中寻找最大值:PrivateSubFindMax(a()AsInteger,ByRefMaxAsInteger) DimsAsInteger,fAsInteger DimiAsInteger
窗体上有一个名称为VScroll1的垂直滚动条,要求程序运行时,滚动块的初始位置在最下端,应该使VScroll1.Value的值等于( )。
若要把窗体上命令按钮Command1的状态设置为不可用,应该执行的命令是( )。
如果在窗体模块中所有程序代码的前面有语句:Dimx,则x是( )。
构成计算机软件的是
VisualBasic控件一般都规定一个默认属性,在引用这样的属性时,只写对象名而不必给出属性名。默认属性为Caption的控件是( )。
下面说法中错误的是
软件按功能可以分为应用软件、系统软件和支撑软件(或工具软件)。下面属于应用软件的是( )。
算法的有穷性是指
算法的有穷性是指
随机试题
下列关于血清尿素氮的改变及临床意义的叙述,正确的是()
组织为说服管理对象而采取的传播管理方法是()。
A公司是一家软件开发企业,员工大多都是刚毕业一、两年的年轻人。A公司人力资源经理认为,刚毕业的年轻人应该比较喜欢挑战,因此他向公司领导提出制订关于强调表彰、提升、给予更大的个人责任和股票期权计划等更具挑战性的员工激励计划,但计划交由员工讨论时,员工们却对此
教师为了让学生对我国古代诗人所生活的朝代有个清晰的认知,将诗句打乱,下列按照诗人朝代的先后顺序排序正确的是()。①床前明月光,疑是地上霜。②夕阳西下,断肠人在天涯。③采菊东篱下,悠然见南山。④但愿人长久,千
教师方某常给学生起侮辱性绰号,造成恶劣影响,对于方某的这种行为,所在学校或教育行政部门应当给予()。
阅读以下短文,回答下面问题:由我国科学家精确绘制的水稻第四号染色体精确测序图发表在代表国际权威的英国《自然》杂志上。科技部、中国科学院查上海宣布:我国科学家独立完成了“国际水稻基因组计划”第四号染色体精确测序任务,对这一国医让划的贡献率达10%,
()发现储藏粮食的窑穴达80多座,表明当时的农业生产水平已脱离原始的阶段。
Youarebeinggivenan,opportunitythatalotofodierswoulddiefor,butthatdoesn’tmeanitisthebest【C1】______foryout
LightningCloud-to-groundlightningboltsareacommonphenomenon,about100strikeEarth’ssurfaceeverysinglesecond,yet
OnthemorningofMay9,1927,CharlesA.LindberaghtookofffromamuddyairfieldinNewYorkandheadedforParis.Fourteenho
最新回复
(
0
)