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

📄 form1.frm

📁 vb电子书籍
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form1 
   BackColor       =   &H00E0E0E0&
   ClientHeight    =   5280
   ClientLeft      =   60
   ClientTop       =   630
   ClientWidth     =   6750
   FillColor       =   &H00C0C0C0&
   BeginProperty Font 
      Name            =   "宋体"
      Size            =   12
      Charset         =   134
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   Icon            =   "Form1.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   5280
   ScaleWidth      =   6750
   StartUpPosition =   2  '屏幕中心
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   360
      Top             =   2880
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.TextBox Text1 
      Height          =   5295
      Left            =   0
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   0
      Top             =   0
      Width           =   6735
   End
   Begin VB.Menu filemenu 
      Caption         =   "文件"
      Begin VB.Menu filenew 
         Caption         =   "新建"
         Shortcut        =   ^N
      End
      Begin VB.Menu fileopen 
         Caption         =   "打开"
         Shortcut        =   ^O
      End
      Begin VB.Menu filesave 
         Caption         =   "保存"
         Shortcut        =   ^S
      End
      Begin VB.Menu filesaveas 
         Caption         =   "另存为"
      End
      Begin VB.Menu fileexit 
         Caption         =   "退出"
      End
      Begin VB.Menu bar3 
         Caption         =   "-----------"
         Visible         =   0   'False
      End
      Begin VB.Menu menudel 
         Caption         =   "删除菜单项"
      End
      Begin VB.Menu runmenu 
         Caption         =   ""
         Index           =   0
         Visible         =   0   'False
      End
   End
   Begin VB.Menu editmunu 
      Caption         =   "编辑"
      Begin VB.Menu editcopy 
         Caption         =   "复制"
         Shortcut        =   ^C
      End
      Begin VB.Menu editcut 
         Caption         =   "剪切"
         Shortcut        =   ^X
      End
      Begin VB.Menu editpast 
         Caption         =   "粘贴"
         Shortcut        =   ^V
      End
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'CODE Manger By BcodeXRose
'##################################################################
'## 过程名称:fileopen_click
'## 参数: 无
'##################################################################
Private Sub fileopen_click()
    On Error GoTo nofile
    Form1.CommonDialog1.Filter = "文本文件|*.txt"
    Form1.CommonDialog1.CancelError = True
    Form1.CommonDialog1.ShowOpen
    Text1.Text = ""
    Open Form1.CommonDialog1.FileName For Input As #1
    Do While Not EOF(1)
        Line Input #1, inputdata
        Text1.Text = Text1.Text & inputdata & vbCrLf
    Loop
    Close #1
        imenucont = imenucont + 1
    If imenucont < 5 Then
        bar3.Visible = True
        Load runmenu(imenucont)
        runmenu(imenucont).Caption = CommonDialog1.FileName
        runmenu(imenucont).Visible = True
    Else
        i = imenucont Mod 4
        If i = 0 Then i = 4
        runmenu(i).Caption = CommonDialog1.FileName
    End If
    Exit Sub
nofile:
    If Err.Number = 32755 Then Exit Sub
    
End Sub
    
Private Sub menudel_Click()
    Dim n As Integer
    If imenucount > 4 Then
        n = 4
    Else
        n = imenucount
    End If
    For i = 1 To n
        Unload runmenu(i)
    Next i
    imenucount = 0
    bar3.Visible = False
End Sub

⌨️ 快捷键说明

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