【VB开源代码栏目提醒】:网学会员为需要VB开源代码的朋友们搜集整理了Ex8_11.frm相关资料,希望对各位网友有所帮助!
VERSION 5.00
Begin VB.Form Ex8_11
AutoRedraw = -1 'True
Caption = "图片框的应用"
ClientHeight = 3045
ClientLeft = 60
ClientTop = 450
ClientWidth = 4485
LinkTopic = "Form1"
ScaleHeight = 3045
ScaleWidth = 4485
StartUpPosition = 3 '窗口缺省
Begin VB.PictureBox Picture2
AutoSize = -1 'True
Height = 2055
Left = 2400
ScaleHeight = 1995
ScaleWidth = 1635
TabIndex = 4
Top = 240
Width = 1695
End
Begin VB.CommandButton Command3
Caption = "清除"
Height = 375
Left = 3120
TabIndex = 3
Top = 2520
Width = 975
End
Begin VB.CommandButton Command2
Caption = "复制"
Height = 375
Left = 1800
TabIndex = 2
Top = 2520
Width = 975
End
Begin
VB.CommandButton Command1
Caption = "加载"
Height = 375
Left = 600
TabIndex = 1
Top = 2520
Width = 975
End
Begin VB.PictureBox Picture1
AutoSize = -1 'True
Height = 2055
Left = 360
ScaleHeight = 1995
ScaleWidth = 1515
TabIndex = 0
Top = 240
Width = 1575
End
End
Attribute VB_Name = "Ex8_11"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Picture1.Picture = LoadPicture("c:\8_11.jpg") '加载图片
End Sub
Private Sub Command2_Click()
Picture2.Picture = Picture1.Picture '复制图片
End Sub
Private Sub Command3_Click()
Picture1.Picture = LoadPicture '清除图片
Picture2.Picture = LoadPicture
End Sub