practice9_5.frm

来自「深圳大学的vb上机与教学的课件」· FRM 代码 · 共 66 行

FRM
66
字号
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   5685
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   8175
   LinkTopic       =   "Form1"
   ScaleHeight     =   5685
   ScaleWidth      =   8175
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command1 
      Caption         =   "停止"
      Height          =   495
      Left            =   6960
      TabIndex        =   1
      Top             =   5160
      Width           =   1215
   End
   Begin VB.Timer Timer1 
      Interval        =   100
      Left            =   7680
      Top             =   0
   End
   Begin VB.Label Label1 
      Caption         =   "热烈欢迎"
      BeginProperty Font 
         Name            =   "幼圆"
         Size            =   36
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000C0&
      Height          =   855
      Left            =   2400
      TabIndex        =   0
      Top             =   1560
      Width           =   3015
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

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

Private Sub Form_Load()
  Label1.Left = 0
End Sub

Private Sub Timer1_Timer()
  If Label1.Left >= Form1.ScaleWidth Then
    Label1.Left = 0 - Label1.Width
  Else
    Label1.Left = Label1.Left + 100
  End If
End Sub

⌨️ 快捷键说明

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