mimaform.frm

来自「用VB编程实现word的基本功能」· FRM 代码 · 共 57 行

FRM
57
字号
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Begin VB.Form frmdocument 
   Caption         =   "form1"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   MDIChild        =   -1  'True
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   360
      Top             =   2400
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.TextBox Text1 
      Height          =   1455
      Left            =   480
      TabIndex        =   0
      Text            =   "中南大学"
      Top             =   720
      Width           =   3735
   End
End
Attribute VB_Name = "frmdocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


 Sub diaoyong()
CommonDialog1.Flags = cdlCFScreenFonts
CommonDialog1.ShowFont
If Err <> vbCancel Then
If CommonDialog1.FontName <> "" Then
Text1.FontName = CommonDialog1.FontName
End If
Text1.FontSize = CommonDialog1.FontSize
Text1.FontBold = CommonDialog1.FontBold
Text1.FontItalic = CommonDialog1.FontItalic
Text1.FontUnderline = CommonDialog1.FontUnderline
Text1.FontStrikethru = CommonDialog1.FontStrikethru
End If

End Sub

Private Sub Form_resize()
Text1.Height = ScaleHeight
Text1.Width = ScaleWidth

End Sub

⌨️ 快捷键说明

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