Click here to Skip to main content
15,908,661 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: vb.net API to fetch/retrieve email Pin
asimeerza9-Apr-04 2:54
asimeerza9-Apr-04 2:54 
Generalupdate sql db using vb.net Pin
partt8-Apr-04 9:33
partt8-Apr-04 9:33 
GeneralRe: update sql db using vb.net Pin
Dave Kreskowiak8-Apr-04 11:21
mveDave Kreskowiak8-Apr-04 11:21 
GeneralRe: update sql db using vb.net Pin
Anonymous9-Apr-04 3:36
Anonymous9-Apr-04 3:36 
GeneralDrag and Drop from .net to Another application like AUTOCAD Pin
Member 9169658-Apr-04 7:56
Member 9169658-Apr-04 7:56 
GeneralRe: Drag and Drop from .net to Another application like AUTOCAD Pin
Heath Stewart8-Apr-04 8:25
protectorHeath Stewart8-Apr-04 8:25 
GeneralRe: Drag and Drop from .net to Another application like AUTOCAD Pin
Member 9169658-Apr-04 8:31
Member 9169658-Apr-04 8:31 
GeneralRe: Drag and Drop from .net to Another application like AUTOCAD Pin
Heath Stewart8-Apr-04 8:38
protectorHeath Stewart8-Apr-04 8:38 
I've done it easily in the past. The only stipulation - without having to P/Invoke OLE's DoDragDrop function and the related OLE interfaces - is that you must have a file related to the item in your ListView. For example, lets say you store the actual path of the file in the ListViewItem.Tag property, so in the event handler for ListView.ItemDrag, you could do something like this:
Private Sub listView1_ItemDrag(ByVal sender As Object, ByVal e As ItemDragEventArgs)
  Dim path As String = CStr(e.Tag)
  Dim do As New DataObject(DataFormats.FileDrop, path)
  listView1.DoDragDrop(do, DragDropEffects.Copy)
End Sub
If your ListView contains "virtual" files that you need to stream to the drop target, you have to revert to OLE drag and drop, which can be done using P/Invoke and COM interop for declaring the related interfaces and structs.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Drag and Drop from .net to Another application like AUTOCAD Pin
Member 9169658-Apr-04 8:52
Member 9169658-Apr-04 8:52 
GeneralRe: Drag and Drop from .net to Another application like AUTOCAD Pin
Heath Stewart8-Apr-04 9:09
protectorHeath Stewart8-Apr-04 9:09 
GeneralRe: Drag and Drop from .net to Another application like AUTOCAD Pin
Hemant Athavale9-Apr-04 18:59
sussHemant Athavale9-Apr-04 18:59 
GeneralServer.MapPath() Returns broken Image links Pin
Anonymous8-Apr-04 6:52
Anonymous8-Apr-04 6:52 
QuestionReports?? Pin
hounetdev8-Apr-04 6:29
hounetdev8-Apr-04 6:29 
AnswerRe: Reports?? Pin
Sarvesvara (BVKS) Dasa9-Apr-04 18:45
Sarvesvara (BVKS) Dasa9-Apr-04 18:45 
QuestionHow to Kill multiple processes? Pin
ndalal8-Apr-04 6:02
ndalal8-Apr-04 6:02 
GeneralHooking password textbox Pin
a4hd8-Apr-04 5:20
a4hd8-Apr-04 5:20 
GeneralRe: Hooking password textbox Pin
Colin Angus Mackay8-Apr-04 5:54
Colin Angus Mackay8-Apr-04 5:54 
GeneralRe: Hooking password textbox Pin
Heath Stewart8-Apr-04 8:42
protectorHeath Stewart8-Apr-04 8:42 
GeneralFile associations & File Types Editor Pin
nvmoss8-Apr-04 4:59
nvmoss8-Apr-04 4:59 
GeneralRe: File associations & File Types Editor Pin
Nadroj8-Apr-04 7:55
Nadroj8-Apr-04 7:55 
GeneralRe: File associations & File Types Editor Pin
nvmoss13-Apr-04 7:10
nvmoss13-Apr-04 7:10 
GeneralRe: File associations & File Types Editor Pin
Nadroj13-Apr-04 7:43
Nadroj13-Apr-04 7:43 
GeneralRe: File associations & File Types Editor Pin
nvmoss13-Apr-04 8:41
nvmoss13-Apr-04 8:41 
GeneralRe: File associations & File Types Editor Pin
Nadroj13-Apr-04 8:44
Nadroj13-Apr-04 8:44 
GeneralRe: File associations & File Types Editor Pin
Dave Kreskowiak13-Apr-04 9:18
mveDave Kreskowiak13-Apr-04 9:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.