首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
设窗体上有3个图像框:Image1、Image2、Image3,并有下面的程序代码: Private Sub Form_Load() Image1.Picture = LoadPicture("LEAF.bmp") Image2.Pictu
设窗体上有3个图像框:Image1、Image2、Image3,并有下面的程序代码: Private Sub Form_Load() Image1.Picture = LoadPicture("LEAF.bmp") Image2.Pictu
admin
2020-07-22
21
问题
设窗体上有3个图像框:Image1、Image2、Image3,并有下面的程序代码:
Private Sub Form_Load()
Image1.Picture = LoadPicture("LEAF.bmp")
Image2.Picture = LoadPicture("OPEN.bmp")
Image3.Visible = False
End Sub
Private Sub Image1_Click()
Image2.Picture = Image1.Picture
End Sub
Private Sub Image2_Click()
Image3.Picture = Image2.Picture
Image2.Picture = Image1.Picture
Image1.Picture = Image3.Picture
End Sub
在程序运行期间单击Image2,则在窗体上看到的结果是
选项
A、在Image3中显示Image2中的图片
B、Image1、Image2中原有图片被交换了
C、Image1、Image2中都是原来Imege1中的图片
D、Image1、Image2中都是原来Imege2中的图片
答案
B
解析
Form_Load过程中在图相框里载入相应图片。点击Image2时,激发Image2_Click事件,在事件中图片进行了交换。选B)。
转载请注明原文地址:https://kaotiyun.com/show/UVHp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
在窗体上画一个文本框,其名称为Textl,为了在程序运行后隐藏该文本框,应使用的语句为()。
设R是一个2元关系,有3个元组,S是一个3元关系,有3个元组。如T=R×S,则T的元组的个数为()。
(1)在考生文件夹下有一个工程文件sjt3.vbp。程序运行时,单击窗体则显示如图所示的图案。请去掉程序中的注释符,把程序中的?改为正确的内容。注意:不能修改程序的其他部分和控件属性。最后将修改后的文件按原文件名存盘。(2)在考生文件夹下有一个
在菜单编辑器中建立如下图所示的菜单,并为了每个菜单项编写了鼠标单击事件过程。 关于此菜单,以下叙述中错误的是( )。
现有程序如下:OptionBase1PrivateSubForm_Click() Dimx(5,6)AsInteger,y(5)AsInteger Fori=1To5 Forj=1To6 x(i
实现字符的UniCode编码方式与ANSI编码方式相互转换的函数是()。
对长度为n的线性表作快速排序,在最坏情况下,比较次数为
已知:x=-6y=39则表达式"y\x*Sgn(x)"的值为( )。
窗体上有一个名称为Command1的命令按钮,单击该按钮时所实现的功能是产生10个随机整数,然后从键盘输入一个整数,查找该数在数组中的位置。若找到,输出该数的位置;若没有找到,给出相应的提示。该命令按钮的单击事件过程如下:PrivateSubCom
假定有以下循环结构:DoUntil条件表达式循环体Loop则以下正确的描述是()。
随机试题
美国的教育努力培养“民主”社会中确能适应生活需要的理想公民;而英国着重培养品行,以养成绅士风范。这说明
管道中凡形成高低井的应在低井处设上下梯子,入孔深度大于()的应加装梯子。
腰椎滑脱最常用的辅助检查方法是
中毒的主要机制没有
属于开放式提问的是()。
根据《证券投资基金法》规定,以下不属于基金管理人职责的是()
马克思主义哲学认为世界在本质上是()。
如图16一1,在直角梯形ABCD中,AD∥BC,∠A=90°,BD⊥CD.若AD=6,,则梯形ABCD的面积为().
设极坐标系下的累次积分将I写成先对r后对θ的累次积分,则I=_________.
求1!+2!+…+10!的程序如下:PrivateFunctions(xAsInteger)f=1Fori=1Toxf=f*iNext
最新回复
(
0
)