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

📄 config.frm

📁 一个用vb做的可以显示动态的水的代码。虽然有点简单呢
💻 FRM
字号:
VERSION 4.00
Begin VB.Form frmConfig 
   Caption         =   "ScrSaver Configuration"
   ClientHeight    =   1545
   ClientLeft      =   3555
   ClientTop       =   2850
   ClientWidth     =   3180
   Height          =   1950
   Left            =   3495
   LinkTopic       =   "Form1"
   ScaleHeight     =   1545
   ScaleWidth      =   3180
   ShowInTaskbar   =   0   'False
   Top             =   2505
   Width           =   3300
   Begin VB.TextBox txtNumBalls 
      Height          =   285
      Left            =   1920
      TabIndex        =   0
      Top             =   240
      Width           =   495
   End
   Begin VB.CommandButton cmdCancel 
      Cancel          =   -1  'True
      Caption         =   "Cancel"
      Height          =   495
      Left            =   1680
      TabIndex        =   2
      Top             =   840
      Width           =   735
   End
   Begin VB.CommandButton cmdOk 
      Caption         =   "Ok"
      Default         =   -1  'True
      Height          =   495
      Left            =   720
      TabIndex        =   1
      Top             =   840
      Width           =   735
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "Number of balls:"
      Height          =   195
      Left            =   720
      TabIndex        =   3
      Top             =   240
      Width           =   1140
   End
End
Attribute VB_Name = "frmConfig"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Option Explicit

Private Sub cmdCancel_Click()
    Unload Me
End Sub


' Save the new configuration values.
Private Sub cmdOk_Click()
    ' Get the new values.
    On Error Resume Next
    NumBalls = CInt(txtNumBalls)
    On Error GoTo 0

    ' Save the new values.
    SaveConfig

    ' Unload this form.
    Unload Me
End Sub

' Fill in current values.
Private Sub Form_Load()
    ' Load the current configuration information.
    LoadConfig
    
    txtNumBalls = Format$(NumBalls)
End Sub

⌨️ 快捷键说明

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