Option ExplicitPrivate Sub Form_Load()
Me.OLEDropMode = 1
End SubPrivate Sub Form_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim sCom As String
Dim sFile As String
sCom = Command
txtFile.Text = sCom & vbCrLf
Dim nCount As Integer, nIndex As Integer
Dim sName As String
With Data
' If .GetFormat(vbCFFiles) = True Then
'sName = .GetData(3)
nCount = .Files.Count
For nIndex = 1 To nCount
sFile = .Files.Item(nIndex) & vbCrLf
txtFile.Text = txtFile.Text & sFile
' OLE.CreateEmbed sFile
Next
' Else
' End If
End With
End Sub
Me.OLEDropMode = 1
End SubPrivate Sub Form_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim sCom As String
Dim sFile As String
sCom = Command
txtFile.Text = sCom & vbCrLf
Dim nCount As Integer, nIndex As Integer
Dim sName As String
With Data
' If .GetFormat(vbCFFiles) = True Then
'sName = .GetData(3)
nCount = .Files.Count
For nIndex = 1 To nCount
sFile = .Files.Item(nIndex) & vbCrLf
txtFile.Text = txtFile.Text & sFile
' OLE.CreateEmbed sFile
Next
' Else
' End If
End With
End Sub
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货