首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
设窗体占有一个标签Label1和一个计时器Timer1,Timerl的Interval属性被设置为1000,Enabled属性被设置为True。要求程序运行时每秒在标签中显示一次系统当前时间。以下可以实现上述要求的事件过程是
设窗体占有一个标签Label1和一个计时器Timer1,Timerl的Interval属性被设置为1000,Enabled属性被设置为True。要求程序运行时每秒在标签中显示一次系统当前时间。以下可以实现上述要求的事件过程是
admin
2019-04-29
30
问题
设窗体占有一个标签Label1和一个计时器Timer1,Timerl的Interval属性被设置为1000,Enabled属性被设置为True。要求程序运行时每秒在标签中显示一次系统当前时间。以下可以实现上述要求的事件过程是
选项
A、Private Sub Timerl Timer( )
B、Private Sub Timerl_Timer()
Labell.Caption=True Labell.Caption=Times
End SubEnd Sub
C、Private Sub Timerl_Timer( )
D、Private Sub Timerl Timer()
Labell.Interval=1For k=1 To Timerl_Interval
End Sub Label 1.Caption=Timer
Next k
End Sub
答案
B
解析
本题考查的考点是有关计时器的。计时器的Interval属性决定了每隔多长时间触发一次Timer事件。本题中Interval设置为1000,即每1秒触发一次Timer事件。在事件中把标签的Caption属性设置成为当前时间,用Time函数可以得到当前时间。
转载请注明原文地址:https://jikaoti.com/ti/zyN0FFFM
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
在考生文件夹下有一个工程文件sjt4.vbp。程序运行后,单击“开始”按钮,图片自上而下移动,同时滚动条的滑块随之移动,每0.5秒移动一次。当图片顶端移动到距窗体的下边界的距离少于200时,再回到窗体顶部,重新向下移动,如图3-24所示。在窗体文件中已经给
在考生文件夹下有一个工程文件sjt5.vbp,窗口有2个名称分别为Command1和Command2、标题分别为“读数据”和“排序”的命令按钮,有2个标题分别为“数组A”和“数组B”的标签。请将窗体标题设置为“完全平方数排序”:再画2个名称分别为Text1
请根据以下各小题的要求设计VisualBasic应用程序(包括界面和代码)。在名称为Form1的窗体上建立一个名称为Command1的命令按钮数组,含三个命令按钮,它们的Index属性分别为0、1、2,标题依次为“是”、“否”、“取消”,每个按钮的高
以下叙述错误的是()。
在考生目录下有一个工程文件vbsj5.vbp,用来计算勾股定理整数组合的个数。勾股定理中3个数的关系是:a2+b2=c2。例如,3、4、5就是一个满足条件的整数组合(注意:a,b,c分别为4,3,5与分别为3,4,5被视为同一个组合,不应该重复计算)。编写
下列说法中错误的是()。
数据库设计过程不包括
以下关于图片框控件的说法中,错误的是()。
以下关于DoUntil…Loop循环的说法正确的是()。
假设用复制、粘贴的方法建立了一个命令按钮数组Command1,以下对该数组的说法错误的是()。
随机试题
哪项不是慢淋白血病性淋巴细胞的特点
二相气雾剂为
A.腮腺B.下颌下腺C.舌下腺D.唇腺E.腭部小涎腺涎石病90%以上发生于
女性,32岁。结婚5年未孕,月经规则,自觉胸脘痞闷,带下量多、色白、质黏,舌苔白腻,脉细滑。妇科检查:子宫如孕2个月大小,宫底部明显突出,质硬,B超检查为单个结节,血红蛋白90g/L。应首选的治疗措施是
单位工程施工组织设计由承担施工任务的单位负责编制,吸收建设单位、设计部门参加,由()审批。
根据行政许可的不同性质和功能,行政许可可以分为普通许可、特许、认可、核准和登记,下列各项中,应采用“特许”的是()。
德生公司注册资本为2000万元。2005年按同期金融机构贷款利率从其关联方——德民公司借款1200万元,发生借款利息72万元。该公司在计算企业所得税应纳税所得额时,准予扣除的利息金额为()万元。
(单选题)“激情平昌,和谐世界”,2月()20时,第二十三届冬季奥林匹克运动会在韩国平昌开幕。
美国联邦所得税是累进税,收入越高,税率越高。美国有的州还在自己管辖的范围内,在绝大部分出售商品的价格上附加7%左右的销售税。如果销售税也被视为所得税的一种形式的话,那么这种税收是违背累进原则的:收入越低,税率越高。以下哪项,如果为真,最能加强题干
下列关于线性链表的叙述中,正确的是
最新回复
(
0
)