蓝黑渐变背景.frm

来自「个人VB学习源码精选,自己学习时的一些编程小程序,希望对大家有帮助」· FRM 代码 · 共 33 行

FRM
33 行
字号
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Paint()
    Dim ly As Long
    Dim lsh As Long
    Dim lsw As Long
    
    ScaleMode = vbPixels
    lsh = ScaleHeight
    lsw = ScaleWidth
    DrawStyle = vbInvisible
    FillStyle = vbFSSolid
    For ly = 0 To lsh
        FillColor = RGB(0, 0, 255 - (ly * 255) \ lsh)
        Line (-1, ly - 1)-(lsw, ly + 1), , B
    Next ly
End Sub

⌨️ 快捷键说明

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