rich n commondialog box.frm

来自「codding for pszone one can use it at pl」· FRM 代码 · 共 79 行

FRM
79
字号
VERSION 5.00
Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "RICHTX32.OCX"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form37 
   BackColor       =   &H00808080&
   Caption         =   "Form37"
   ClientHeight    =   5265
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   8475
   BeginProperty Font 
      Name            =   "Monotype Corsiva"
      Size            =   12
      Charset         =   0
      Weight          =   700
      Underline       =   0   'False
      Italic          =   -1  'True
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form37"
   ScaleHeight     =   5265
   ScaleWidth      =   8475
   StartUpPosition =   3  'Windows Default
   WindowState     =   2  'Maximized
   Begin RichTextLib.RichTextBox RichTextBox 
      Height          =   3375
      Left            =   1320
      TabIndex        =   2
      Top             =   2160
      Width           =   7455
      _ExtentX        =   13150
      _ExtentY        =   5953
      _Version        =   393217
      Enabled         =   -1  'True
      TextRTF         =   $"RICH N COMMONDIALOG BOX.frx":0000
   End
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   2760
      Top             =   2520
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.CommandButton Command2 
      Caption         =   "SAVE"
      Height          =   1095
      Left            =   4560
      TabIndex        =   1
      Top             =   240
      Width           =   2535
   End
   Begin VB.CommandButton CMDOPEN 
      Caption         =   "OPEN"
      Height          =   1095
      Left            =   1680
      TabIndex        =   0
      Top             =   240
      Width           =   2535
   End
End
Attribute VB_Name = "Form37"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CMDOPEN_Click()
RichTextBox.Visible = True
CommonDialog1.Filter = "TEXT FILES(*.TXT)|*.TXT"
CommonDialog1.ShowOpen
RichTextBox.LoadFile (CommonDialog1.FileName)
End Sub

Private Sub Command2_Click()
Min = Timer() / 60
HR = Timer() / 60 / 60
Print Round(HR, 0)
Print Round(Min, 0)
End Sub

⌨️ 快捷键说明

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