Private Sub picClip_DragDrop(Source As Control, X As Single, y As Single)
If Not Source Is picClip Then Exit Sub
picClip.Move picClip.Left + X, picClip.Top + y
End Sub
If Not Source Is picClip Then Exit Sub
picClip.Move picClip.Left + X, picClip.Top + y
End Sub
解决方案 »
- 两款多线程的东西,一款带DLL,另外一款不带,都较稳定!
- adodc控件addnew添加多条数据时的问题(就能加进去一条?),急切需要解决,马上给分!!!!!!!!
- 新手学数据库的问题
- 如何处理webbrowser的弹出登陆对话框,使之不弹出,而且完成自动登陆?高人请指点!!
- 用VB如何调用Oracle数据库中的视图??
- 请大侠帮帮忙,看下段程序有什么问题?
- 我把控件(listbox控件)捆绑到记录集上了,但为什么显示不出来呢?
- loadpicture 在装入图片时,屏幕有闪动,怎么可以不让屏幕闪动???
- QQ任务栏上图标很有意思!
- 怎样在SQL7里用VB读取text类型的数据???????
- vb中的串口通信问题
- 怎么写一个文件,并将原来文件的内容清空?
??
http://www.codestudy.net/bbs/uploadImages/2002123016443681745.rarhttp://www.xygu.com
这是我用来打广告的。你下次贴我写的这个链点好不好啊??,呵呵!
Option Explicit
Dim llX As Long
Dim llY As Long
Dim lstrFileName As StringPrivate Sub Form_Load()
lstrFileName = Trim(frmUser.txtCardID.Text)
Me.Caption = Me.Caption + "[" + lstrFileName + "]"
End SubPrivate Sub picClip_DragDrop(Source As Control, x As Single, y As Single)
If Not Source Is picClip Then Exit Sub
picClip.Move picClip.Left + x - llX, picClip.Top + y - llY
End SubPrivate Sub picClip_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
llX = x
llY = y
picClip.Drag
End SubPrivate Sub picPhoto_DragDrop(Source As Control, x As Single, y As Single)
If Not Source Is picClip Then Exit Sub
picClip.Move x - llX - glLeft, y - llY - glTop
End Sub