main.frm

来自「关于VB模块的」· FRM 代码 · 共 62 行

FRM
62
字号
VERSION 5.00
Begin VB.Form frmMain 
   Caption         =   "渐变的窗体背景"
   ClientHeight    =   5790
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   7680
   LinkTopic       =   "Form1"
   ScaleHeight     =   5790
   ScaleWidth      =   7680
   StartUpPosition =   2  'CenterScreen
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
 
Option Explicit

Private Sub Form_Activate()
  
  On Error GoTo HandleErrors
        
  'For demo purposes we add a delay to simulate a typical applications initialisation.
  DemoDelay
  
ExitHandleErrors:
  
  Exit Sub
  
HandleErrors:

  MsgBox Err.Description & " (" & Err.Number & ")", vbCritical, App.Title & " Error"
  Resume ExitHandleErrors
  
End Sub

Private Sub Form_Load()
  
  On Error GoTo HandleErrors
      

  SetWindowLong frmSplash.hWnd, GWL_HWNDPARENT, Me.hWnd
  
  '---------------------------------------------------------------------------------------------------------------------

  'Perform other start up tasks here...
    
  '---------------------------------------------------------------------------------------------------------------------
  
ExitHandleErrors:
  
  Exit Sub
  
HandleErrors:

  MsgBox Err.Description & " (" & Err.Number & ")", vbCritical, App.Title & " Error"
  Resume ExitHandleErrors
  
End Sub

⌨️ 快捷键说明

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