⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmsplash.frm

📁 基于MSCOMM的炉温控制系统上位机程序
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmSplash 
   Appearance      =   0  'Flat
   AutoRedraw      =   -1  'True
   BackColor       =   &H00FF0000&
   BorderStyle     =   0  'None
   ClientHeight    =   4245
   ClientLeft      =   210
   ClientTop       =   1365
   ClientWidth     =   7380
   ClipControls    =   0   'False
   ControlBox      =   0   'False
   Icon            =   "frmSplash.frx":0000
   KeyPreview      =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   283
   ScaleMode       =   3  'Pixel
   ScaleWidth      =   492
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.Timer Timer1 
      Interval        =   150
      Left            =   2610
      Top             =   2565
   End
   Begin VB.PictureBox picpgb2 
      Appearance      =   0  'Flat
      AutoRedraw      =   -1  'True
      BackColor       =   &H80000005&
      BorderStyle     =   0  'None
      ForeColor       =   &H80000008&
      Height          =   285
      Left            =   240
      ScaleHeight     =   19
      ScaleMode       =   0  'User
      ScaleWidth      =   415
      TabIndex        =   1
      Top             =   3720
      Width           =   6225
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "正在启动 请稍候..."
      BeginProperty Font 
         Name            =   "Franklin Gothic Medium"
         Size            =   11.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FFFFFF&
      Height          =   300
      Index           =   2
      Left            =   4185
      TabIndex        =   4
      Top             =   2790
      Width           =   2085
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "正在启动 请稍候..."
      BeginProperty Font 
         Name            =   "Franklin Gothic Medium"
         Size            =   11.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00C00000&
      Height          =   300
      Index           =   3
      Left            =   4185
      TabIndex        =   3
      Top             =   2880
      Width           =   2085
   End
   Begin VB.Image imgpgb1 
      Appearance      =   0  'Flat
      Height          =   285
      Left            =   1920
      Picture         =   "frmSplash.frx":000C
      Top             =   3000
      Visible         =   0   'False
      Width           =   540
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "炉温自动控制系统"
      BeginProperty Font 
         Name            =   "Franklin Gothic Medium"
         Size            =   20.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FFFFFF&
      Height          =   510
      Index           =   0
      Left            =   2700
      TabIndex        =   0
      Top             =   990
      Width           =   3480
   End
   Begin VB.Image imgLogo 
      Height          =   1785
      Left            =   240
      Picture         =   "frmSplash.frx":03B2
      Stretch         =   -1  'True
      Top             =   555
      Width           =   1815
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "炉温自动控制系统"
      BeginProperty Font 
         Name            =   "Franklin Gothic Medium"
         Size            =   20.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00C00000&
      Height          =   510
      Index           =   1
      Left            =   2760
      TabIndex        =   2
      Top             =   1080
      Width           =   3480
   End
End
Attribute VB_Name = "frmSplash"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim distance As Integer

Private Sub Form_Load()
    distance = 4
    Horizontal Me, RGB(131, 166, 244), RGB(33, 120, 224)
    picpgb2.PaintPicture imgpgb1, 0, 0, 4, 19, 0, 0, 4, 19
    picpgb2.PaintPicture imgpgb1, 4, 0, picpgb2.Width - 9, 19, 4, 0, 10, 19
'Dim x4 As String
'Dim x1 As String
'Dim x2 As String
'Dim x3 As String
'x1 = CStr(137)
'x2 = CStr(135)
'x4 = CStr(100)
'x3 = x1 & "," & x2 & "," & x4
'IcMisSound1.PlaySnd x3
End Sub

Private Sub Form_Terminate()
    Timer1.Enabled = False
End Sub

Private Sub Timer1_Timer()
    For i = 1 To 2
        picpgb2.PaintPicture imgpgb1.Picture, distance, 4, 8, 12, 23, 5, 8, 12
        distance = distance + 10
    Next i
    If distance > picpgb2.Width - 5 Then
        Timer1.Enabled = False
        Unload Me
        Load Form1
        Form1.Show
    End If
End Sub

⌨️ 快捷键说明

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