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

📄 form1.frm

📁 label moveable label movel
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Deslizar o Label - PSCode.com"
   ClientHeight    =   2430
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   4425
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2430
   ScaleWidth      =   4425
   StartUpPosition =   2  'CenterScreen
   Begin VB.Timer Timer1 
      Left            =   0
      Top             =   1440
   End
   Begin VB.Label Label1 
      Height          =   495
      Left            =   50
      TabIndex        =   0
      Top             =   960
      Width           =   4335
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'----------------------------------------------------------------------------
'Fonte: PSCode.com
'Link.: http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=2896&lngWId=1
'Autor: Martin Tonek
'----------------------------------------------------------------------------
Dim s As Integer
Dim dta As String

Private Sub Form_Load()
    '// Centering the form
    Me.Left = (Screen.Width - Me.Width) / 2
    Me.Top = (Screen.Height - Me.Height) / 2
    '// Change Label and Timer prefs
    Label1.Caption = ""
    Timer1.Enabled = True
    Timer1.Interval = 100
    Label1.Width = 4335
    Label1.Font = "Courier New"
    Label1.Font.Size = 9
    Label1.Font.Bold = True
End Sub


Private Sub Timer1_Timer()
    '// put your text here in dta string
    dta = "Mr Slade made IT - please visit http://hem.passagen.se/tonek/vb For updates and other avalible sources! (c)1999 Mr Slade" & Space$(41)
    s = s + 1
    Label1.Caption = Mid(dta, 1, s)
    If Len(Label1.Caption) >= 42 Then Label1.Caption = Right(Label1.Caption, 41)


    If s = Len(dta) Then
        Label1.Caption = ""
        s = 0
    End If
End Sub

⌨️ 快捷键说明

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