frmprint.frm

来自「上机考试系统」· FRM 代码 · 共 52 行

FRM
52
字号
VERSION 5.00
Begin VB.Form frmPrint 
   AutoRedraw      =   -1  'True
   BackColor       =   &H80000005&
   ClientHeight    =   3720
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   7215
   LinkTopic       =   "Form1"
   MDIChild        =   -1  'True
   ScaleHeight     =   3720
   ScaleWidth      =   7215
   Begin VB.CommandButton cmdExit 
      Caption         =   "取消"
      Height          =   330
      Left            =   1140
      TabIndex        =   1
      Top             =   75
      Width           =   900
   End
   Begin VB.CommandButton cmdPrint 
      Caption         =   "打印"
      Height          =   330
      Left            =   135
      TabIndex        =   0
      Top             =   75
      Width           =   900
   End
End
Attribute VB_Name = "frmPrint"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


'完成打印
Private Sub cmdPrint_Click()
    '隐藏命令按钮
    cmdPrint.Visible = False
    cmdExit.Visible = False
    Me.PrintForm          '打印窗体
    '显示命令按钮
    cmdPrint.Visible = True
    cmdExit.Visible = True
End Sub

'关闭打印窗体
Private Sub cmdExit_Click()
    Unload Me
End Sub

⌨️ 快捷键说明

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