Drag and Drop

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chris52672
    New Member
    • Mar 2009
    • 26

    Drag and Drop

    I am trying to get information on a file draged into a drag and drop area.

    I have used an FileOpenDialog box and am able to get things such as size, name, ext. How do I do this with a drag a drop item.
    Code:
    		private void FileDragedIn(object sender, System.Windows.Forms.DragEventArgs e)
    		{
    			//string h = e.Data.ToString();
    			//e.Data.GetData(
    			//System.IO.File.Open(e.Data.ToString(),System.IO.FileMode.Open);
    			//System.IO.FileStream DFileOpen = new System.IO.FileStream();
    			//DFileOpen.
    		}
    		private void FileDragOut(object sender, System.EventArgs e)
    		{
    		
    		}
    
    		private void FileDrop(object sender, System.Windows.Forms.DragEventArgs e)
    		{
    		
    		}
    
    		private void FileHoverOver(object sender, System.Windows.Forms.DragEventArgs e)
    		{
    		
    		}
    
    		private void DragFeedback(object sender, System.Windows.Forms.GiveFeedbackEventArgs e)
    		{
    		
    		}
    Last edited by tlhintoq; Mar 21 '09, 08:04 PM. Reason: code tags added
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    TIP: When you are writing your question, there is a button on the tool bar that wraps the [code] tags around your copy/pasted code. It helps a bunch. Its the button with a '#' on it. More on tags. They're cool. Check'em out.

    Comment

    Working...