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

📄 frmdraw.frm

📁 Visual Basic 6 大学教程的代码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmDraw 
   AutoRedraw      =   -1  'True
   Caption         =   "Fig. 9.34: Printing"
   ClientHeight    =   2130
   ClientLeft      =   2865
   ClientTop       =   2370
   ClientWidth     =   4335
   LinkTopic       =   "Form1"
   ScaleHeight     =   2130
   ScaleWidth      =   4335
   Begin VB.CommandButton cmdPrint 
      Caption         =   "Print "
      Height          =   495
      Left            =   1560
      TabIndex        =   0
      Top             =   1560
      Width           =   1215
   End
   Begin VB.Label lblLabel 
      Caption         =   "Visual Basic 6 How To Program"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   24
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   1215
      Left            =   120
      TabIndex        =   1
      Top             =   120
      Width           =   4095
   End
End
Attribute VB_Name = "frmDraw"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
' Fig. 9.34
' Demonstrating method PrintForm and the Printer object
Option Explicit

Private Sub cmdPrint_Click()
   Call PrintForm       ' Print the form
     
   ' Printing appears on a separate page
   Printer.PrintQuality = vbPRPQDraft
   Printer.Print "Some Printer property values: "
   Printer.Print "DriverName: " & Printer.DriverName
   Printer.Print "Port: " & Printer.Port
   Printer.Print "Copies: " & Printer.Copies
   Printer.EndDoc       ' Send to printer
End Sub




⌨️ 快捷键说明

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