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

📄 form1.frm

📁 vb源码大全
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   4065
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6660
   LinkTopic       =   "Form1"
   ScaleHeight     =   4065
   ScaleWidth      =   6660
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command1 
      Caption         =   "填充效果"
      Height          =   495
      Left            =   4800
      TabIndex        =   6
      Top             =   3360
      Width           =   1215
   End
   Begin VB.PictureBox Picture6 
      Height          =   1095
      Left            =   4320
      ScaleHeight     =   1035
      ScaleWidth      =   1635
      TabIndex        =   5
      Top             =   2040
      Width           =   1695
   End
   Begin VB.PictureBox Picture5 
      Height          =   1095
      Left            =   2400
      ScaleHeight     =   1035
      ScaleWidth      =   1035
      TabIndex        =   4
      Top             =   2040
      Width           =   1095
   End
   Begin VB.PictureBox Picture4 
      Height          =   1095
      Left            =   120
      ScaleHeight     =   1035
      ScaleWidth      =   1515
      TabIndex        =   3
      Top             =   2040
      Width           =   1575
   End
   Begin VB.PictureBox Picture3 
      Height          =   1095
      Left            =   4320
      ScaleHeight     =   1035
      ScaleWidth      =   1635
      TabIndex        =   2
      Top             =   360
      Width           =   1695
   End
   Begin VB.PictureBox Picture2 
      Height          =   1095
      Left            =   2280
      ScaleHeight     =   1035
      ScaleWidth      =   1275
      TabIndex        =   1
      Top             =   360
      Width           =   1335
   End
   Begin VB.PictureBox Picture1 
      Height          =   1095
      Left            =   120
      ScaleHeight     =   1035
      ScaleWidth      =   1515
      TabIndex        =   0
      Top             =   360
      Width           =   1575
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Public Sub rect(obj As Object, x As Integer, y As Integer, w As Integer, h As Integer, c As Long)

    obj.Line (x, y)-(x + w, y), c
    obj.Line -Step(0, h), c
    obj.Line -Step(-w, 0), c
    obj.Line -Step(0, -h), c

End Sub

Private Sub Command1_Click()
Dim i As Integer
For i = 0 To 255
    Picture1.Line (0, 5 * i)-(Picture1.ScaleWidth, 5 * i), RGB(i, i, i)
    Picture2.Line (5 * i, 0)-(5 * i, Picture2.ScaleHeight), RGB(i, i, i)
    Picture3.Line (-10, 10 * i)-(10 * i, -10), RGB(i, i, i)
    rect Picture4, 5 * i, 5 * i, Picture4.ScaleWidth - 10 * i, Picture4.ScaleHeight - 10 * i, RGB(i, i, i)
Next i
For i = 0 To 51
    rect Picture5, 5 * i, 5 * i, Picture5.ScaleHeight - 10 * i, Picture5.ScaleHeight - 10 * i, RGB(i * 5, i * 5, i * 5)
    rect Picture6, 5 * i, 5 * i, Picture6.ScaleWidth - 10 * i, Picture6.ScaleHeight - 10 * i, RGB(255 - 5 * i, 255 - 5 * i, 255 - 5 * i)
    Next i
End Sub

⌨️ 快捷键说明

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