📄 fav pets.frm
字号:
VERSION 5.00
Begin VB.Form Form34
BackColor = &H00808080&
Caption = "Form34"
ClientHeight = 4770
ClientLeft = 60
ClientTop = 450
ClientWidth = 7860
LinkTopic = "Form34"
ScaleHeight = 4770
ScaleWidth = 7860
StartUpPosition = 3 'Windows Default
WindowState = 2 'Maximized
Begin VB.CommandButton Command1
Caption = "DONE"
BeginProperty Font
Name = "Monotype Corsiva"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 360
TabIndex = 5
Top = 3960
Width = 1815
End
Begin VB.OptionButton Option4
Caption = "PARROT"
BeginProperty Font
Name = "Monotype Corsiva"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 480
TabIndex = 4
Top = 3240
Width = 1455
End
Begin VB.OptionButton Option3
Caption = "DUCK"
BeginProperty Font
Name = "Monotype Corsiva"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 480
TabIndex = 3
Top = 2640
Width = 1455
End
Begin VB.OptionButton Option2
Caption = "CAT"
BeginProperty Font
Name = "Monotype Corsiva"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 480
TabIndex = 2
Top = 2040
Width = 1455
End
Begin VB.OptionButton Option1
Caption = "DOG"
BeginProperty Font
Name = "Monotype Corsiva"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 480
TabIndex = 1
Top = 1440
Width = 1455
End
Begin VB.Image Image1
Height = 3375
Left = 2400
Top = 1320
Width = 4935
End
Begin VB.Label Label1
Caption = "SELECT YOUR FAVOURITE TYPE OF PET"
BeginProperty Font
Name = "Monotype Corsiva"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 855
Left = 480
TabIndex = 0
Top = 240
Width = 4935
End
End
Attribute VB_Name = "Form34"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Option1.Value = True Then
Image1.Picture = LoadPicture("C:/Documents and Settings/MAHESHWARI PC 28/My Documents/MY PICTURES/DOG.GIF")
End If
If Option2.Value = True Then
Image1.Picture = LoadPicture("C:/Documents and Settings/MAHESHWARI PC 28/My Documents/MY PICTURES/CAT.GIF")
End If
If Option3.Value = True Then
Image1.Picture = LoadPicture("C:/Documents and Settings/MAHESHWARI PC 28/My Documents/MY PICTURES/DUCK.GIF")
End If
If Option4.Value = True Then
Image1.Picture = LoadPicture("C:/Documents and Settings/MAHESHWARI PC 28/My Documents/MY PICTURES/PARROT.GIF")
End If
End Sub
Private Sub Form_Load()
Option1.Value = False
Option2.Value = False
Option3.Value = False
Option4.Value = False
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -