frmmod.frm

来自「Visual Basic 6 大学教程的代码」· FRM 代码 · 共 35 行

FRM
35 行
字号
VERSION 5.00
Begin VB.Form frmForm 
   Caption         =   "Fig. 6.34: Project with a code module"
   ClientHeight    =   2355
   ClientLeft      =   2520
   ClientTop       =   2325
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   2355
   ScaleWidth      =   4680
   Begin VB.CommandButton cmdPrint 
      Caption         =   "Print"
      Height          =   495
      Left            =   1733
      TabIndex        =   0
      Top             =   1800
      Width           =   1215
   End
End
Attribute VB_Name = "frmForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
' Fig. 6.34
' Using a code module
Option Explicit

Private Sub cmdPrint_Click()
   ' ModulePrint is defined in code module
   ' modModule.bas
   Call ModulePrint
End Sub

⌨️ 快捷键说明

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