欢迎来到天天文库
浏览记录
ID:53070468
大小:54.00 KB
页数:13页
时间:2020-04-01
《VB拼图游戏源代码.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、.DimaAsInteger,bAsInteger,cAsInteger,dAsInteger,eAsString,jbAsIntegerPrivateSubEnd_Click()EndEndSubPrivateSubForm_Load()DimiAsInteger,aAsInteger,bAsIntegerFori=0To7Image1(i).Picture=LoadPicture("C:UsersAdministratorDesktop图片"&(i+1)&".jpg")Label1(i).FontSize=110NextiRandomizeEndSubPriva
2、teSubImage1_Click(IndexAsInteger)IfIndex=8ThenIfImage1(5).Picture=FalseThenImage2.Picture=Image1(8).PictureImage1(8).Picture=Image1(5).PictureImage1(5).Picture=Image2.Picturee=Label1(8).CaptionLabel1(8).Caption=Label1(5).CaptionLabel1(5)=eText3.Text=Val(Text3.Text)+1Timer2.Enabled=TrueElseI
3、fImage1(7).Picture=FalseThenImage2.Picture=Image1(8).PictureImage1(8).Picture=Image1(7).PictureImage1(7).Picture=Image2.Picturee=Label1(8).CaptionLabel1(8).Caption=Label1(7).CaptionLabel1(7)=eText3.Text=Val(Text3.Text)+1Timer2.Enabled=TrueEndIfEndIfEndIfIfIndex=6Then..IfImage1(3).Picture=Fa
4、lseThenImage2.Picture=Image1(6).PictureImage1(6).Picture=Image1(3).PictureImage1(3).Picture=Image2.Picturee=Label1(6).CaptionLabel1(6).Caption=Label1(3).CaptionLabel1(3)=eText3.Text=Val(Text3.Text)+1Timer2.Enabled=TrueElseIfImage1(7).Picture=FalseThenImage2.Picture=Image1(6).PictureImage1(6
5、).Picture=Image1(7).PictureImage1(7).Picture=Image2.Picturee=Label1(6).CaptionLabel1(6).Caption=Label1(7).CaptionLabel1(7)=eText3.Text=Val(Text3.Text)+1Timer2.Enabled=TrueEndIfEndIfEndIfIfIndex=0ThenIfImage1(3).Picture=FalseThenImage2.Picture=Image1(0).PictureImage1(0).Picture=Image1(3).Pic
6、tureImage1(3).Picture=Image2.Picturee=Label1(0).CaptionLabel1(0).Caption=Label1(3).CaptionLabel1(3)=eText3.Text=Val(Text3.Text)+1Timer2.Enabled=TrueElseIfImage1(1).Picture=FalseThenImage2.Picture=Image1(0).PictureImage1(0).Picture=Image1(1).PictureImage1(1).Picture=Image2.Picturee=Label1(0)
7、.CaptionLabel1(0).Caption=Label1(1).CaptionLabel1(1)=eText3.Text=Val(Text3.Text)+1Timer2.Enabled=TrueEndIfEndIf..EndIfIfIndex=2ThenIfImage1(5).Picture=FalseThenImage2.Picture=Image1(2).PictureImage1(2).Picture=Image1(5).PictureImage1(5).Picture=Image2.Pi
此文档下载收益归作者所有