Click here to Skip to main content
15,911,715 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to know multisession CD by using VB.Net? Pin
Anubhava Dimri16-Feb-10 22:34
Anubhava Dimri16-Feb-10 22:34 
QuestionDrop XML into TreeView? Pin
hat_master16-Feb-10 10:12
hat_master16-Feb-10 10:12 
AnswerRe: Drop XML into TreeView? Pin
DaveAuld16-Feb-10 11:02
professionalDaveAuld16-Feb-10 11:02 
GeneralRe: Drop XML into TreeView? Pin
William Winner16-Feb-10 11:16
William Winner16-Feb-10 11:16 
GeneralRe: Drop XML into TreeView? Pin
DaveAuld16-Feb-10 11:39
professionalDaveAuld16-Feb-10 11:39 
GeneralRe: Drop XML into TreeView? Pin
William Winner16-Feb-10 11:48
William Winner16-Feb-10 11:48 
GeneralRe: Drop XML into TreeView? Pin
hat_master16-Feb-10 16:30
hat_master16-Feb-10 16:30 
AnswerRe: Drop XML into TreeView? Pin
William Winner16-Feb-10 11:15
William Winner16-Feb-10 11:15 
First, I assume you've enable dragging with your TreeView. So, you want to hook the DragEnter event. When you click on a file in Windows Explorer, and start to drag, from what I can tell, it adds 8 Formats to the Data in the DragEventArgs:
Shell IDList Array
Shell Object Offsets
DragImageBits
DragContext
InShellDragLoop
FileDrop
FileNameW
FileName

FileNameW is the Windows file name and the data you're interested in. Here's an example of the DragEnter Event
VB
If e.Data.GetDataPresent("FileNameW") Then
  'Change the cursor to let the user know that something could happen
  e.Effect = DragDropEffects.Link
End if


Then on the DragDrop
VB
If e.Data.GetDataPresent("FileNameW") Then
  'Do what you need to do
  'The File name can be accessed through
  'e.Data.GetData("FileNameW")(0)
  '(e.Data.GetData("FileNameW") is an array)
End If

QuestionWhat is the best way to return a large amount of related information from a routine? Pin
Euhemerus16-Feb-10 8:23
Euhemerus16-Feb-10 8:23 
AnswerRe: What is the best way to return a large amount of related information from a routine? Pin
William Winner16-Feb-10 9:40
William Winner16-Feb-10 9:40 
GeneralRe: What is the best way to return a large amount of related information from a routine? Pin
Euhemerus16-Feb-10 10:53
Euhemerus16-Feb-10 10:53 
Questionchange font format of button Pin
Coloniac16-Feb-10 8:05
Coloniac16-Feb-10 8:05 
AnswerRe: change font format of button Pin
Luc Pattyn16-Feb-10 8:31
sitebuilderLuc Pattyn16-Feb-10 8:31 
AnswerRe: change font format of button Pin
Coloniac16-Feb-10 9:09
Coloniac16-Feb-10 9:09 
GeneralRe: change font format of button Pin
Luc Pattyn16-Feb-10 9:18
sitebuilderLuc Pattyn16-Feb-10 9:18 
AnswerRe: change font format of button Pin
Euhemerus16-Feb-10 8:34
Euhemerus16-Feb-10 8:34 
AnswerRe: change font format of button Pin
David Skelly16-Feb-10 22:47
David Skelly16-Feb-10 22:47 
Questionautomatic login with webbrowser Pin
gokhan üstüner16-Feb-10 2:42
professionalgokhan üstüner16-Feb-10 2:42 
AnswerRe: automatic login with webbrowser Pin
DaveAuld16-Feb-10 2:50
professionalDaveAuld16-Feb-10 2:50 
AnswerRe: automatic login with webbrowser Pin
DaveAuld16-Feb-10 3:38
professionalDaveAuld16-Feb-10 3:38 
Questionhow to Tracking windows application? Pin
police_0104016-Feb-10 1:42
police_0104016-Feb-10 1:42 
AnswerRe: how to Tracking windows application? Pin
DaveAuld16-Feb-10 2:09
professionalDaveAuld16-Feb-10 2:09 
GeneralRe: how to Tracking windows application? Pin
police_0104016-Feb-10 2:29
police_0104016-Feb-10 2:29 
GeneralRe: how to Tracking windows application? Pin
DaveAuld16-Feb-10 2:35
professionalDaveAuld16-Feb-10 2:35 
Questionhow to get burned date on CDRom? Pin
phowarso15-Feb-10 23:38
phowarso15-Feb-10 23:38 

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.