首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
设窗体上有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
2015-08-28
20
问题
设窗体上有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/XzLp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
下列叙述中正确的是()。
下列程序段的执行结果为______。A=0:B=0ForI=-1To-2Step-1ForJ=1To2B=B+1NextJA=A+1NextIPrintA;B
编写如下事件过程:PrivateSubForm_MouseDown(ButtonAsInteger,ShiftAsInteger,XAsSingle,YAsSingle)IfShift=6AndButto
下列程序段的执行结果为______。Dimm(3,3)AsIntegerDimiAsIntegerDimjAsIntegerDimxAsIntegerFori=1To3m(i,i)=i
以下叙述中错误的是______。
按照逻辑结构分类,结构可以分为线性结构和非线性结构,栈属于______。
在下列几种排序方法中,要求内存量最大的是______。
数据的存储结构是指______。
变量未赋值时,数值型变量的值为______,字符串变量的值为______。
下列()标识符不能作为VisualBasic的变量名。
随机试题
制定《药品管理法》最根本的目的是
【背景资料】某施工项目,施工进度计划网络图如图1所示(单位:月)。圈1施工进度计划网络圈在施工过程中,施工进度受到多重外界因素的影响,包括甲供材料因不合格退场、设计变更导致部分成品需拆除后重新施工、施工机械故障、现场停水
蜂窝铝板幕墙的面板加工,正确的技术要求是()。
设产品的故障率时间服从指数分布,则:若λ=0.0005/h,则t=100h的可靠度累计故障概率F(100)为()。
在人民当家作主的人民民主专政国家,公安机关是依据广大人民群众的意志建立的,忠实地执行人民的意志、国家的意志。()
2017年4月20日,“天舟一号”飞船在文昌航天发射中心成功发射升空。下列有关“天舟一号”的说法错误的是()。
以债的标的有无选择性为标准,债可以分为()
ADSL接入互联网的两种方式是______。
根据汉字国标GB2312-80的规定,一个汉字的机内码的码长是______。
—Whataboutchanginghiringrequirements?—______.
最新回复
(
0
)