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

📄 例10.7.frm

📁 一本学习Visual Basic编程的好书
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.PictureBox Picture1 
      BackColor       =   &H00C0FFFF&
      Height          =   1710
      Left            =   120
      ScaleHeight     =   1650
      ScaleWidth      =   2400
      TabIndex        =   1
      Top             =   120
      Width           =   2460
   End
   Begin VB.TextBox Text1 
      BackColor       =   &H00FFFFC0&
      ForeColor       =   &H000000C0&
      Height          =   420
      Left            =   2175
      TabIndex        =   0
      Text            =   "把选定的文本拖放到图片框中"
      Top             =   2625
      Width           =   2445
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
    Text1.DragMode = 0                '置手动方式
End Sub
Private Sub Picture1_DragDrop(Source As Control, X As Single, Y As Single)
    Picture1.CurrentX = X             '以鼠标位置为当前显示起始位置
    Picture1.CurrentY = Y
    Picture1.Print Text1.SelText      '在图片框中显示文本中的选定内容
End Sub
Private Sub Text1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    If Button = 1 Then                'Button为1时,表示按下左键
        Text1.DragMode = 1            '置自动方式
    End If
End Sub

⌨️ 快捷键说明

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