changeprinterorient.frm
来自「大量优秀的vb编程」· FRM 代码 · 共 66 行
FRM
66 行
VERSION 5.00
Begin VB.Form frmChangePrinterOrient
Caption = "设置打印方向"
ClientHeight = 1680
ClientLeft = 60
ClientTop = 348
ClientWidth = 3672
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1680
ScaleWidth = 3672
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton cmdChangePrinterOrient
Caption = "改变打印方向"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.6
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 480
TabIndex = 2
Top = 960
Width = 2655
End
Begin VB.OptionButton optLand
Caption = "Landscape"
Height = 495
Left = 1920
TabIndex = 1
Top = 240
Width = 1215
End
Begin VB.OptionButton optPort
Caption = "Portrait"
Height = 495
Left = 600
TabIndex = 0
Top = 240
Width = 1215
End
End
Attribute VB_Name = "frmChangePrinterOrient"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdChangePrinterOrient_Click()
If optPort.Value = True Then
ChngPrinterOrientationPortrait Me
ElseIf optLand.Value = True Then
ChngPrinterOrientationLandscape Me
End If
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?