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

📄 随意划线.frm

📁 学习VB以来的心得体会
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3090
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3090
   ScaleWidth      =   4680
   StartUpPosition =   3  'Windows Default
   Begin VB.Timer Timer1 
      Left            =   1200
      Top             =   600
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Dim bool As Boolean
Dim x1 As Integer, y1 As Integer
Dim x2 As Integer, y2 As Integer


Private Sub Form_Click()
 bool = False
 DrawMode = 13
 DrawWidth = 10
 BackColor = vbBlack
 Timer1.Interval = 10
 
End Sub



Private Sub Timer1_Timer()
 If bool = False Then
    Randomize
    x1 = Int(3000 * Rnd + 1)
    Randomize
    y1 = Int(3000 * Rnd(6) + 1)
    Randomize
    x2 = Int(3000 * Rnd(8) + 1)
    Randomize
    y2 = Int(3000 * Rnd(9) + 1)
    Line (x1, y1)-(x2, y2), vbWhite
    DrawMode = 7
    Line (x1, y1)-(x2, y2), vbRed
    End If
End Sub

⌨️ 快捷键说明

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