码迷,mamicode.com
首页 > 其他好文 > 详细

VB拖放(随记,未完)

时间:2016-04-23 07:14:19      阅读:108      评论:0      收藏:0      [点我收藏+]

标签:

Private Sub Form_Load()
Picture1.OLEDragMode = 1
Text1.OLEDropMode = 1
End Sub

Private Sub Picture1_OLEStartDrag(Data As DataObject, AllowedEffects As Long)
AllowedEffects = 1
Data.Clear
Data.SetData "<" & Now & ">", 1
End Sub

Private Sub Text1_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim s As String
s = Data.GetData(1)
Text1.SelLength = 0
Text1.SelText = s
End Sub

 

VB拖放(随记,未完)

标签:

原文地址:http://www.cnblogs.com/youyouran/p/5423540.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!