Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - Drag and drop files from a listbox fails
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Drag and drop files from a listbox fails

 Post Reply Post Reply
Author
Message
ceesverburg View Drop Down
Newbie
Newbie
Avatar

Joined: 27 March 2011
Location: Vietnam
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote ceesverburg Quote  Post ReplyReply Direct Link To This Post Topic: Drag and drop files from a listbox fails
    Posted: 02 April 2012 at 9:12am
Drag and drop from listbox doesn't work, worse when I try to drop to windows explorer or to the desktop it causes explorer to crash. Checking de Data object after Data.SetData "c:\test.txt", vbCFFiles it seems that no files were added (Data Is Nothing). Code I use below. Did I miss something?

Private Sub lstFiles_OLEStartDrag(Data As XtremeSuiteControls.DataObject, AllowedEffects As Long)
    AllowedEffects = vbDropEffectCopy
    Data.SetData "c:\test.txt", vbCFFiles
    'OR: Data.SetData Array("c:\test.txt", "c:\test2.txt"), vbCFFiles
End Sub

VB6 SP6, Xtreme SuitePro ActiveX 2011 (15.2.1), Win7
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.184 seconds.