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

📄 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    =   5010
   ClientLeft      =   60
   ClientTop       =   630
   ClientWidth     =   6405
   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     =   5010
   ScaleWidth      =   6405
   StartUpPosition =   2  '屏幕中心
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   360
      Top             =   2880
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.TextBox Text1 
      Height          =   5055
      Left            =   0
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   0
      Top             =   0
      Width           =   6375
   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 menudel 
         Caption         =   "删除"
      End
      Begin VB.Menu fileexit 
         Caption         =   "退出"
      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
Dim st As String
Private Sub editcopy_Click()
     st = Text1.SelText
End Sub

Private Sub editcut_Click()
     st = Text1.SelText
     Text1.SelText = ""
End Sub

Private Sub editpast_Click()
Text1.SelText = st
End Sub

'CODE Manger By BcodeXRose
'##################################################################
'## 过程名称:fileexit_Click
'## 参数: 无
'##################################################################
Private Sub fileexit_Click()
    End
End Sub
    
'##################################################################
'## 过程名称: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
    
    Exit Sub
nofile:
    If Err.Number = 32755 Then Exit Sub
    
End Sub

⌨️ 快捷键说明

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