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

📄 frmabout.frm

📁 几个不错的VB例子
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmAbout 
   AutoRedraw      =   -1  'True
   BackColor       =   &H0000C000&
   BorderStyle     =   4  'Fixed ToolWindow
   Caption         =   "About me..."
   ClientHeight    =   1875
   ClientLeft      =   45
   ClientTop       =   270
   ClientWidth     =   4155
   ClipControls    =   0   'False
   BeginProperty Font 
      Name            =   "Arial"
      Size            =   14.25
      Charset         =   0
      Weight          =   700
      Underline       =   0   'False
      Italic          =   -1  'True
      Strikethrough   =   0   'False
   EndProperty
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   125
   ScaleMode       =   3  'Pixel
   ScaleWidth      =   277
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  'CenterOwner
   Begin VB.PictureBox Thumbing 
      Appearance      =   0  'Flat
      AutoRedraw      =   -1  'True
      BackColor       =   &H0000C000&
      BorderStyle     =   0  'None
      ClipControls    =   0   'False
      FillColor       =   &H00C0FFC0&
      FillStyle       =   0  'Solid
      BeginProperty Font 
         Name            =   "Verdana"
         Size            =   6.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00008000&
      Height          =   885
      Left            =   465
      ScaleHeight     =   59
      ScaleMode       =   3  'Pixel
      ScaleWidth      =   47
      TabIndex        =   2
      TabStop         =   0   'False
      Top             =   465
      Width           =   705
   End
   Begin VB.Label lblAuthor 
      BackStyle       =   0  'Transparent
      Caption         =   "Carles P.V. - 2001"
      BeginProperty Font 
         Name            =   "Verdana"
         Size            =   6.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   180
      Left            =   1980
      TabIndex        =   1
      Top             =   735
      Width           =   1440
   End
   Begin VB.Label lblMail_To 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "carles_pv@terra.es"
      BeginProperty Font 
         Name            =   "Verdana"
         Size            =   6.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00C0FFC0&
      Height          =   180
      Left            =   1965
      MouseIcon       =   "frmAbout.frx":0000
      MousePointer    =   99  'Custom
      TabIndex        =   0
      Top             =   1170
      Width           =   1470
   End
End
Attribute VB_Name = "frmAbout"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
' ==================
'    Thumb DB 1.5
' ==================
' Carles P.V. - 2001
' carles_pv@terra.es
' ==================

Option Explicit





Dim Quit As Boolean 'Exit loop flag

Private Sub Form_Load()

    '## Draw app. Title
    Me.CurrentX = 112
    Me.CurrentY = 29
    Me.ForeColor = vbBlack
    Me.Print "THUMB DB 1.5"
    
    Me.CurrentX = 111
    Me.CurrentY = 28
    Me.ForeColor = &HC0FFC0
    Me.Print "THUMB DB 1.5"
    
    '## Draw border
    Me.Line (0, 0)-(ScaleWidth - 1, 114), vbBlack, B
    
    '## Draw decorative bar
    DrawBar Me, 115
    
End Sub

' =================================================================================
' Animation
' =================================================================================

Private Sub Form_Activate()

    Dim Shows_count As Integer
    Dim x As Single
    Dim y As Single
    
    Thumbing.Cls
    Quit = False
    
    Do
        
        If GetTickCount - t > 50 Then
        
            t = GetTickCount
        
            If Shows_count < 20 Then
                
                x = (Shows_count Mod 4) * 12
                y = Int(Shows_count / 4) * 12
                
                Thumbing.Line (x, y)-(x + 10, y + 10), , B
                
            End If
            
            Shows_count = Shows_count + 1
            
            If Shows_count = 30 Then
                Shows_count = 0
                Thumbing.Cls
            End If
        
        End If
    
        DoEvents
    
    Loop Until Quit = True
    
End Sub

' =================================================================================
' Send e-mail
' =================================================================================

Private Sub lblMail_To_Click()

    Dim Ret As Long
    
    Screen.MousePointer = vbHourglass
    
    Ret = ShellExecute(Me.hWnd, _
                       "Open", _
                       "mailto:carles_pv@terra.es", _
                       vbNullString, _
                       CurDir$, _
                       SW_RESTORE)
    
    Screen.MousePointer = vbDefault

End Sub

' =================================================================================
' Quit
' =================================================================================

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)

    If KeyCode = 27 Then Unload Me

End Sub

Private Sub Form_Unload(Cancel As Integer)
    
    Quit = True
    
End Sub

⌨️ 快捷键说明

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