form1.frm

来自「非常漂亮的VB控件」· FRM 代码 · 共 415 行

FRM
415
字号
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Begin VB.Form Form1 
   BackColor       =   &H00E0E0E0&
   BorderStyle     =   0  'None
   Caption         =   "Form1"
   ClientHeight    =   3195
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   4050
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4050
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  '所有者中心
   Begin VB.PictureBox Picture1 
      Height          =   780
      Left            =   7815
      ScaleHeight     =   720
      ScaleWidth      =   4770
      TabIndex        =   1
      Top             =   3165
      Visible         =   0   'False
      Width           =   4830
      Begin VB.PictureBox Bc1 
         AutoSize        =   -1  'True
         Height          =   300
         Left            =   45
         Picture         =   "Form1.frx":0000
         ScaleHeight     =   240
         ScaleWidth      =   240
         TabIndex        =   10
         Top             =   720
         Width           =   300
      End
      Begin VB.PictureBox Bc0 
         AutoSize        =   -1  'True
         Height          =   300
         Left            =   675
         Picture         =   "Form1.frx":0342
         ScaleHeight     =   240
         ScaleWidth      =   240
         TabIndex        =   9
         Top             =   645
         Width           =   300
      End
      Begin VB.PictureBox bc2 
         AutoSize        =   -1  'True
         Height          =   300
         Left            =   1050
         Picture         =   "Form1.frx":0684
         ScaleHeight     =   240
         ScaleWidth      =   240
         TabIndex        =   8
         Top             =   915
         Width           =   300
      End
      Begin VB.PictureBox Ba2 
         AutoSize        =   -1  'True
         Height          =   300
         Left            =   1005
         Picture         =   "Form1.frx":09C6
         ScaleHeight     =   240
         ScaleWidth      =   240
         TabIndex        =   7
         Top             =   270
         Width           =   300
      End
      Begin VB.PictureBox ba1 
         AutoSize        =   -1  'True
         Height          =   300
         Left            =   630
         Picture         =   "Form1.frx":0D08
         ScaleHeight     =   240
         ScaleWidth      =   240
         TabIndex        =   6
         Top             =   0
         Width           =   300
      End
      Begin VB.PictureBox ba0 
         AutoSize        =   -1  'True
         Height          =   300
         Left            =   0
         Picture         =   "Form1.frx":104A
         ScaleHeight     =   240
         ScaleWidth      =   240
         TabIndex        =   5
         Top             =   75
         Width           =   300
      End
      Begin VB.PictureBox Bi0 
         AutoSize        =   -1  'True
         Height          =   300
         Left            =   1590
         Picture         =   "Form1.frx":138C
         ScaleHeight     =   240
         ScaleWidth      =   240
         TabIndex        =   4
         Top             =   390
         Width           =   300
      End
      Begin VB.PictureBox Bi1 
         AutoSize        =   -1  'True
         Height          =   300
         Left            =   2220
         Picture         =   "Form1.frx":16CE
         ScaleHeight     =   240
         ScaleWidth      =   240
         TabIndex        =   3
         Top             =   315
         Width           =   300
      End
      Begin VB.PictureBox Bi2 
         AutoSize        =   -1  'True
         Height          =   300
         Left            =   2610
         Picture         =   "Form1.frx":1A10
         ScaleHeight     =   240
         ScaleWidth      =   240
         TabIndex        =   2
         Top             =   585
         Width           =   300
      End
   End
   Begin 界面设计.Bd Bd4 
      Align           =   3  'Align Left
      Height          =   2625
      Left            =   0
      TabIndex        =   0
      Top             =   390
      Width           =   45
      _ExtentX        =   79
      _ExtentY        =   4630
      Picture         =   "Form1.frx":1D52
      Caption         =   ""
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Picture         =   "Form1.frx":2044
   End
   Begin MSComDlg.CommonDialog Cmd 
      Left            =   6795
      Top             =   3645
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
      DefaultExt      =   "*.swf"
      DialogTitle     =   "打开"
   End
   Begin 界面设计.Bd Bd6 
      Align           =   2  'Align Bottom
      Height          =   180
      Left            =   0
      TabIndex        =   11
      Top             =   3015
      Width           =   4050
      _ExtentX        =   7144
      _ExtentY        =   318
      Picture         =   "Form1.frx":2336
      Caption         =   ""
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Picture         =   "Form1.frx":2B68
      Begin 界面设计.Bd Bd3 
         Height          =   180
         Left            =   0
         TabIndex        =   12
         Top             =   0
         Width           =   180
         _ExtentX        =   318
         _ExtentY        =   318
         Picture         =   "Form1.frx":339A
         Caption         =   ""
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Picture         =   "Form1.frx":359C
      End
      Begin 界面设计.Bd Br 
         Height          =   180
         Left            =   3870
         TabIndex        =   13
         Top             =   0
         Width           =   180
         _ExtentX        =   318
         _ExtentY        =   318
         Picture         =   "Form1.frx":379E
         Caption         =   ""
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Picture         =   "Form1.frx":39A0
      End
   End
   Begin 界面设计.Bd Rc 
      Align           =   4  'Align Right
      Height          =   2625
      Left            =   4005
      TabIndex        =   14
      Top             =   390
      Width           =   45
      _ExtentX        =   79
      _ExtentY        =   4630
      Picture         =   "Form1.frx":3BA2
      Caption         =   ""
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Picture         =   "Form1.frx":3E94
   End
   Begin 界面设计.Bd Bd1 
      Align           =   1  'Align Top
      Height          =   390
      Left            =   0
      TabIndex        =   15
      Top             =   0
      Width           =   4050
      _ExtentX        =   7144
      _ExtentY        =   688
      Picture         =   "Form1.frx":4186
      Caption         =   ""
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Picture         =   "Form1.frx":4E88
      Begin 界面设计.Bd Tr 
         Height          =   390
         Left            =   3540
         TabIndex        =   16
         Top             =   0
         Width           =   510
         _ExtentX        =   900
         _ExtentY        =   688
         Picture         =   "Form1.frx":5B8A
         Caption         =   ""
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Picture         =   "Form1.frx":65D4
      End
      Begin 界面设计.Bd Bd2 
         Height          =   390
         Left            =   0
         TabIndex        =   17
         Top             =   0
         Width           =   1035
         _ExtentX        =   1826
         _ExtentY        =   688
         Picture         =   "Form1.frx":701E
         Caption         =   ""
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Picture         =   "Form1.frx":8874
         Begin VB.Image Bi 
            Height          =   240
            Left            =   630
            Picture         =   "Form1.frx":A0CA
            Top             =   75
            Visible         =   0   'False
            Width           =   240
         End
         Begin VB.Image BA 
            Enabled         =   0   'False
            Height          =   240
            Left            =   360
            Picture         =   "Form1.frx":A40C
            Top             =   75
            Visible         =   0   'False
            Width           =   240
         End
         Begin VB.Image BC 
            Height          =   240
            Left            =   75
            Picture         =   "Form1.frx":A74E
            Top             =   75
            Width           =   240
         End
      End
      Begin VB.Label Cap 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "关于本程序"
         Height          =   180
         Left            =   1065
         TabIndex        =   18
         Top             =   105
         Width           =   900
      End
   End
   Begin VB.PictureBox Picture2 
      AutoSize        =   -1  'True
      Height          =   3660
      Left            =   -210
      Picture         =   "Form1.frx":AA90
      ScaleHeight     =   3600
      ScaleWidth      =   4800
      TabIndex        =   19
      Top             =   -90
      Width           =   4860
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'----------------------------以下的是窗体控件代码------------------------------------------
Private Sub BA_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    BA.Picture = Ba2.Picture
End Sub
Private Sub BA_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    BA.Picture = ba1.Picture
End Sub
Private Sub BA_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
    BA.Picture = ba0.Picture
    MaxFrm Me, Tr, Rc, Br
End Sub
Private Sub BC_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    BC.Picture = bc2.Picture
End Sub
Private Sub BC_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    BC.Picture = Bc1.Picture
End Sub
Private Sub BC_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Unload Me
End Sub
Private Sub Bd1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Drag_me Me
End Sub
Private Sub Image1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Image1.Picture = bd8.Picture
End Sub
Private Sub Image1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Image1.Picture = bd9.Picture
    Unload Me
End Sub
Private Sub Bd2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    BC.Picture = Bc0.Picture
    BA.Picture = ba0.Picture
    Bi.Picture = Bi0.Picture
End Sub
Private Sub Bi_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Bi.Picture = Bi2.Picture
End Sub

Private Sub Bi_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Bi.Picture = Bi1.Picture
End Sub

Private Sub Bi_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Bi.Picture = Bi0.Picture
    Me.WindowState = 1
End Sub

Private Sub Bd1_DblClick()
    MaxFrm Me, Tr, Rc, Br
End Sub


Private Sub Cap_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Drag_me Me
End Sub
'----------------------------以上的是窗体控件代码------------------------------------------

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?