首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
在运行阶段,要在文本框Text1获得焦点时选中文本框中所有内容,对应的事件过程是
在运行阶段,要在文本框Text1获得焦点时选中文本框中所有内容,对应的事件过程是
admin
2010-11-20
31
问题
在运行阶段,要在文本框Text1获得焦点时选中文本框中所有内容,对应的事件过程是
选项
A、Private Sub Text1_GotFocus()
Text1.SelStart=0
Text1.SelLength=Len(Text1.Text)
End Sub
B、Private Sub Text1_LostFocus()
Text1.SelStart=0
Text1.SelLength=Len(Text1.Text)
End Sub
C、Private Sub Text1_Change()
Text1.SelStart=0
Text1.SelLength=Len(Text1.Text)
End Sub
D、Private Sub Text1_SetFocus()
Text.SelStart=0
Text1.SelLength=Len(Text1.Text)
End Sub
答案
A
解析
GotFocus事件过程用以指定当控件或窗体首次接收焦点时发生的操作。属性:SelStart——返回或设置所选择的文本的起始点。如果没有文本被选中,则指出插入点的位置;SelLength——返回或设置所选择的字符数。
转载请注明原文地址:https://kaotiyun.com/show/1Omp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
Applet生命周期是指从Applet【】到浏览器,到用户退出浏览器,终止Applet运行的过程。
顺序执行下列程序语句后,则b的值是Stringa="Hello";Stringb=a.substring(0,2);
下列语句中正确的是
下列哪个选项是main()方法的返回值类型?()
在关系数据库中,对一个关系做投影操作后,新关系的元组个数将()
请完善程序(程序文件名:Java_2.java)并进行调试。请在下画线处填入正确内容,然后删除下画线。请勿删除注释行和其他已有的语句内容。[题目要求]程序显示一个窗口。该窗口包含一个按钮和一个文本域,当单击按钮时将在文本域中显示当前日期,如
语句Threadthread1=newSomeThreadClass()成功运行后,线程thread1处于生命周期的______状态。
软件工程研究的内容主要包括______技术和软件工程管理。
软件生命周期包括8个阶段。为了使各时期的任务更明确,又可分为3个时期:软件定义期、软件开发期、软件维护期。编码和测试属于______期。
数据处理的最小单位是
随机试题
长时间接触低浓度氨,可引起()。
“为减小毒性反应而低剂量合用抗菌药物以达效”的合理用药实例是
甲和乙签订了一份买卖合同,后因乙未履行合同义务,两人发生口角,进而升级直至发生斗殴,甲失手将乙打成重伤。公安机关侦查终结后,检察院对甲提起公诉,乙也向人民法院提起刑事附带民事诉讼,要求赔偿医疗费用,法院审理后判处甲有期徒刑3年,并赔偿乙的所有治疗费用。有关
如图所示受偏心压力的受压杆,则杆的横截面上()。
()是已经发行的各种股票转让、流通、交易的场所。
闭环式MRP系统的工作过程是一个“计划一实施一评价一反馈一计划”的封闭循环过程。它能对生产中的人力、机器和材料等各项资源进行计划与控制,把生产能力需求计划、车间作业计划等纳入MRP,形成一个封闭的系统。()
资产阶级共和国的方案之所以行不通的原因是资产阶段级()
设A为m×n矩阵。证明:对任意m维列向量b,非齐次线性方程组Ax=b恒有解的充分必要条件是r(A)=m。
要限制宏命令的操作范围,可以在创建宏时定义()。
A、Toregisterforadistance-learningcourse.B、Tosignforanemploymentcontract.C、Todoameaningfulexperiment.D、Toworku
最新回复
(
0
)