首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
设窗体上有一个标签Labell和一个计时器Timerl,Timerl的Interval属性被设置为1000, Enabled属性被设置为True。要求程序运行时每秒在标签中显示一次系统当前时间。以下可以实现上述要求的事件过程是
设窗体上有一个标签Labell和一个计时器Timerl,Timerl的Interval属性被设置为1000, Enabled属性被设置为True。要求程序运行时每秒在标签中显示一次系统当前时间。以下可以实现上述要求的事件过程是
admin
2019-06-11
30
问题
设窗体上有一个标签Labell和一个计时器Timerl,Timerl的Interval属性被设置为1000, Enabled属性被设置为True。要求程序运行时每秒在标签中显示一次系统当前时间。以下可以实现上述要求的事件过程是
选项
A、Private Sub Timer 1_Timer()
Label 1.Caption=True
End Sub
B、Private Sub Timer 1_Timer()
Label 1.Caption=TimeS
End Sub
C、Private Sub Timer 1_Timer()
Labell.Interval=1
End Sub
D、Private Sub Timer 1_Timer()
For k=1 TO Timer1.Interval
Label 1.Caption=Timer
Next k
End Sub
答案
B
解析
本题考查的考点是有关计时器的。计时器的Interval属性决定了每隔多长时间触发一次Timer事件。本题中Interval设置为1000,即每1秒触发一次Timer事件。在事件中把标签的Caption属性设置成为当前时间,用Time函数可以得到当前时间。
转载请注明原文地址:https://kaotiyun.com/show/rVUp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
为了使标签控件在显示其内容时不覆盖其背景内容,需进行设置的属性为
设工程中有Form1、Form2两个窗体,要求单击Form2上的Command1命令按钮,Form2就可以从屏幕上消失,下面的事件过程中不能实现此功能的是
设子程序过程定义的首部为:PublicSubs(XAsInteger,YAsSingle)则以下正确的调用形式为
在窗体上画1个命令按钮,并编写如下事件过程:PrivateSubCommand1_Click()Dima(3,3)Form=1To3Forn=1To3Ifn=inOrn=4-mThena(m,n)=m+nElsea(m,n)
设窗体上有2个文本框Text1和Text2,并有下面的事件过程:DimnPrivateSubText1_KeyPress(KeyAsciiAsInteger)If"A"<=Chr(KeyAscii)AndChr(KeyAscii)<="Z
下列事件的事件过程中,参数是输入字符ASCII码的是
下列数组定义中错误的是
下面对对象概念描述正确的是
以下不属于VisualBasic数据文件的是
随机试题
劳动者违反服务期约定的,应当按照约定向用人单位支付违约金。()
温胆汤的功用是
婴儿,男。出生6天,啼哭拒食,口腔黏膜出现微突地软白小点,擦去后可露出出血面,拟诊断
实行经济核算的核心是()。
根据《水利水电建设工程验收规程》SL223—2008的有关规定,工程竣工技术预验应包括()程序。
风险管理的工作流程是( )。
大洋公司在2011年1月1日平价发行新债券,每张面值1000元,票面利率10%,5年到期,每年12月31日付息。根据以上材料回答问题。假定陈先生持有大洋公司的该债券至2015年1月1日,而此时的市价为900元,此时购买该债券的到期收益率是()
请阅读以下材料,并回答后面的问题。2010年8月.甲厂向A银行借款20万元,期限一年,本厂所有的一辆价值40万元的轿车做抵押.并到车辆管理部门办理了抵押登记;同年9月,甲厂又以该轿车做抵押物,向B银行借款15万元。期限半年,双方也到车辆管理部门办理了抵押
下列不属于社区物质要素的是()。
阅读下面的短文,回答以下问题。文化的字义有多种,一般来说,文化是人类所创造的一切物质、制度与精神。中国文化有两个基本精神,具有高度的理论价值,一是“以人为本”,一是“以和为贵”。中国文化和西方、印度的文化很不一样,中国文化有着
最新回复
(
0
)