VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "OLE拖放示例"
   ClientHeight    =   1785
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4485
   LinkTopic       =   "Form1"
   ScaleHeight     =   1785
   ScaleWidth      =   4485
   StartUpPosition =   3  '窗口缺省
   Begin VB.Label Label1 
      BorderStyle     =   1  'Fixed Single
      Caption         =   "打开资源管理器，选择拖放对象"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   1455
      Left            =   240
      OLEDropMode     =   1  'Manual
      TabIndex        =   0
      Top             =   240
      Width           =   3495
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Sub Label1_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, _
    Shift As Integer, X As Single, Y As Single)
    Label1.Caption = Data.Files(1)
    ' 当在Windows资源管理器中选定文件并且拖出时，系统就把所选定的文件名
' 保存在Data对象的Files属性中，Files属性实质上是一个数组
    ' Label1.Caption = Data.Files(1)语句是把保存的第一个文件名显示在标签中
End Sub


