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

📄 f2-11.frm

📁 VB课程教学的讲义源的代码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   4485
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   7740
   LinkTopic       =   "Form1"
   ScaleHeight     =   4485
   ScaleWidth      =   7740
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton cmdExit 
      Caption         =   "结束"
      Height          =   615
      Left            =   5520
      TabIndex        =   4
      Top             =   3120
      Width           =   1215
   End
   Begin VB.CommandButton cmdpaste 
      Caption         =   "paste"
      Height          =   615
      Left            =   5520
      Style           =   1  'Graphical
      TabIndex        =   3
      Top             =   2200
      Width           =   1215
   End
   Begin VB.CommandButton cmdcopy 
      Caption         =   "copy"
      Height          =   615
      Left            =   5520
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   1280
      Width           =   1215
   End
   Begin VB.CommandButton cmdcut 
      Caption         =   "cut"
      Height          =   615
      Left            =   5520
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   360
      Width           =   1215
   End
   Begin VB.TextBox txtNoteEdit 
      Height          =   3615
      Left            =   240
      MultiLine       =   -1  'True
      TabIndex        =   0
      Top             =   240
      Width           =   4455
   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 Command1_Click()

End Sub

Private Sub Command3_Click()

End Sub

Private Sub cmdcopy_Click()
    st = txtNoteEdit.SelText
    cmdcopy.Enabled = False
    cmdcut.Enabled = False
    cmdpaste.Enabled = True
End Sub

Private Sub cmdcut_Click()
    st = txtNoteEdit.SelText
    txtNoteEdit.SelText = ""
    cmdcopy.Enabled = False
    cmdcut.Enabled = False
    cmdpaste.Enabled = True
End Sub

Private Sub cmdExit_Click()
    End
End Sub

Private Sub cmdpaste_Click()
    txtNoteEdit.SelText = st
End Sub

Private Sub Form_Load()
    cmdcopy.Enabled = False
    cmdcut.Enabled = False
    cmdpaste.Enabled = False
End Sub

Private Sub txtNoteEdit_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    If txtNoteEdit.SelText <> "" Then
        cmdcopy.Enabled = True
        cmdcut.Enabled = True
        cmdpaste.Enabled = False
    Else
        cmdcopy.Enabled = False
        cmdcut.Enabled = False
        cmdpaste.Enabled = True
    End If
End Sub

⌨️ 快捷键说明

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