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

📄 form1.frm

📁 这里有很多很实用的VB编程案例,方便大家学习VB.
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "移动的文字"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.PictureBox Picture2 
      AutoRedraw      =   -1  'True
      BorderStyle     =   0  'None
      Height          =   495
      Left            =   300
      ScaleHeight     =   495
      ScaleWidth      =   3000
      TabIndex        =   1
      Top             =   1320
      Width           =   3000
   End
   Begin VB.PictureBox Picture1 
      AutoRedraw      =   -1  'True
      BorderStyle     =   0  'None
      Height          =   495
      Left            =   300
      ScaleHeight     =   495
      ScaleWidth      =   3000
      TabIndex        =   0
      Top             =   1320
      Width           =   3000
   End
   Begin VB.Timer Timer1 
      Interval        =   200
      Left            =   1680
      Top             =   2160
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Const strSamp = "滚动文本演示"
Dim bShow As Boolean
Dim iScroll As Integer

Private Sub Timer1_Timer()
    If bShow Then
        bShow = False
        Picture1.Visible = False
        Picture2.Visible = True
        Picture1.Cls
        Picture1.CurrentX = iScroll
        Picture1.CurrentY = 30
        Picture1.Print strSamp
    Else
        bShow = True
        Picture1.Visible = True
        Picture2.Visible = False
        Picture2.Cls
        Picture2.CurrentX = iScroll
        Picture2.CurrentY = 30
        Picture2.Print strSamp
    End If
    iScroll = iScroll + 30
    If iScroll > 1800 Then
        Timer1.Enabled = False
    End If
End Sub

⌨️ 快捷键说明

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