mdiform1.frm

来自「Its a project for editing like a notepad」· FRM 代码 · 共 60 行

FRM
60
字号
VERSION 5.00
Begin VB.MDIForm MDIForm1 
   BackColor       =   &H8000000C&
   Caption         =   "MDIForm1"
   ClientHeight    =   3090
   ClientLeft      =   165
   ClientTop       =   855
   ClientWidth     =   4680
   LinkTopic       =   "MDIForm1"
   StartUpPosition =   3  'Windows Default
   Begin VB.Menu file 
      Caption         =   "File"
      Begin VB.Menu New 
         Caption         =   "New"
      End
      Begin VB.Menu Open 
         Caption         =   "Open"
      End
      Begin VB.Menu Save 
         Caption         =   "Save"
      End
   End
   Begin VB.Menu Edit 
      Caption         =   "Edit"
      Begin VB.Menu Ctu 
         Caption         =   "Cut"
      End
      Begin VB.Menu Copy 
         Caption         =   "Copy"
      End
      Begin VB.Menu Paste 
         Caption         =   "Paste"
      End
   End
End
Attribute VB_Name = "MDIForm1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub New_Click()
Form1.Show
End Sub

Private Sub Open_Click()
Form1.CommonDialog1.ShowOpen
Form1.Show
Form1.RichTextBox1.LoadFile (Form1.CommonDialog1.FileName)
End Sub

Private Sub Save_Click()
If (Form1.RichTextBox1.Text <> "") Then
Form1.CommonDialog1.ShowSave
Form1.RichTextBox1.SaveFile (Form1.CommonDialog1.FileName)
MsgBox ("File Saved")
Else
MsgBox ("No Text to Save !!!")
End If
End Sub

⌨️ 快捷键说明

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