frmlabel.frm

来自「这是一个网吧计费管理系统的源代码」· FRM 代码 · 共 87 行

FRM
87
字号
VERSION 5.00
Begin VB.Form frmLabel 
   AutoRedraw      =   -1  'True
   BackColor       =   &H80000001&
   BorderStyle     =   0  'None
   ClientHeight    =   435
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   3420
   LinkTopic       =   "Form1"
   ScaleHeight     =   435
   ScaleWidth      =   3420
   ShowInTaskbar   =   0   'False
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000FF&
      Height          =   300
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   165
   End
   Begin VB.Label Label2 
      Appearance      =   0  'Flat
      AutoSize        =   -1  'True
      BackColor       =   &H80000005&
      BackStyle       =   0  'Transparent
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000008&
      Height          =   300
      Left            =   480
      TabIndex        =   1
      Top             =   840
      Width           =   165
   End
End
Attribute VB_Name = "frmLabel"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Public Sub Flash()
Label2.Left = Label1.Left + 15
Label2.Top = Label1.Top + 15
Label2.Caption = Label1.Caption
Me.Width = Label1.Width + 20
Me.Height = Label1.Height + 20
 SetWindowPos Me.hwnd, -1, 0, 0, 0, 0, 1 Or 2

End Sub




Private Sub Form_Load()
Me.Show
Me.Flash
End Sub

Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
 If Button = 1 Then
  ' Picture1.MouseIcon = Image1.Picture
    ReleaseCapture
    SendMessage hwnd, &HA1, 2, 0
    End If
  
End Sub

⌨️ 快捷键说明

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