Click here to Skip to main content
15,923,006 members
Home / Discussions / C#
   

C#

 
QuestionCasting Nightmare Pin
MCEdwards30-Jun-08 7:33
MCEdwards30-Jun-08 7:33 
AnswerRe: Casting Nightmare Pin
Judah Gabriel Himango30-Jun-08 9:40
sponsorJudah Gabriel Himango30-Jun-08 9:40 
Questionc# xml stream deserialization Pin
davegali30-Jun-08 6:07
davegali30-Jun-08 6:07 
AnswerRe: c# xml stream deserialization Pin
leppie30-Jun-08 7:58
leppie30-Jun-08 7:58 
Questionhow to run the dropped file ? Pin
Xmen Real 30-Jun-08 5:33
professional Xmen Real 30-Jun-08 5:33 
AnswerRe: how to run the dropped file ? Pin
Anthony Mushrow30-Jun-08 7:08
professionalAnthony Mushrow30-Jun-08 7:08 
GeneralRe: how to run the dropped file ? Pin
Xmen Real 30-Jun-08 14:44
professional Xmen Real 30-Jun-08 14:44 
GeneralRe: how to run the dropped file ? Pin
Anthony Mushrow30-Jun-08 23:05
professionalAnthony Mushrow30-Jun-08 23:05 
I'm nor sure you can get windows explorer to run a file, if you do a FileDrop into windows explorer I'm pretty sure it will just move the file. If you want to execute the file afterwards you'd have to find out where you dropped it, unless by run you actually mean you just want explorer to copy/move the file.

Either way, you can do a FileDrop from your app to windows explorer like so:

void TreeView1ItemDrag(object sender, ItemDragEventArgs e)
{
  string[] stuff = new string[1];
  stuff[0] = 'path to file';
.
  //Create a new data object with the FileDrop type
  DataObject data = new DataObject(DataFormats.FileDrop, stuff);
. 
  this.treeView1.DoDragDrop(data, DragDropEffects.Copy); //Or DragDropEffectes.Move
}


Of course if your using a listView or something else your obviously gonna need to change that a little. Multiple files at the same time would just require you to add more paths to the string array.

My current favourite word is: I'm starting to run out of fav. words!
-SK Genius

Game Programming articles start -here[^]-

GeneralRe: how to run the dropped file ? Pin
Xmen Real 30-Jun-08 23:22
professional Xmen Real 30-Jun-08 23:22 
GeneralRe: how to run the dropped file ? Pin
Anthony Mushrow1-Jul-08 1:07
professionalAnthony Mushrow1-Jul-08 1:07 
GeneralRe: how to run the dropped file ? Pin
Xmen Real 1-Jul-08 2:31
professional Xmen Real 1-Jul-08 2:31 
AnswerRe: how to run the dropped file ? Pin
Jimmanuel30-Jun-08 10:20
Jimmanuel30-Jun-08 10:20 
GeneralRe: how to run the dropped file ? Pin
Xmen Real 30-Jun-08 14:45
professional Xmen Real 30-Jun-08 14:45 
AnswerRe: how to run the dropped file ? Pin
DaveyM691-Jul-08 2:53
professionalDaveyM691-Jul-08 2:53 
GeneralRe: how to run the dropped file ? Pin
Xmen Real 1-Jul-08 5:12
professional Xmen Real 1-Jul-08 5:12 
QuestionUnable to Connect to Visual Studios Local Host server Pin
kibromg30-Jun-08 5:14
kibromg30-Jun-08 5:14 
AnswerRe: Unable to Connect to Visual Studios Local Host server Pin
John_Adams30-Jun-08 8:44
John_Adams30-Jun-08 8:44 
Questionremoving row from dataTable / DataGridView Issue Pin
Harvey Saayman30-Jun-08 5:12
Harvey Saayman30-Jun-08 5:12 
AnswerRe: removing row from dataTable / DataGridView Issue Pin
Xmen Real 30-Jun-08 5:21
professional Xmen Real 30-Jun-08 5:21 
GeneralRe: removing row from dataTable / DataGridView Issue Pin
Harvey Saayman30-Jun-08 20:14
Harvey Saayman30-Jun-08 20:14 
GeneralRe: removing row from dataTable / DataGridView Issue Pin
Xmen Real 30-Jun-08 22:46
professional Xmen Real 30-Jun-08 22:46 
GeneralRe: removing row from dataTable / DataGridView Issue Pin
Harvey Saayman30-Jun-08 22:59
Harvey Saayman30-Jun-08 22:59 
GeneralRe: removing row from dataTable / DataGridView Issue Pin
Xmen Real 30-Jun-08 23:02
professional Xmen Real 30-Jun-08 23:02 
GeneralRe: removing row from dataTable / DataGridView Issue Pin
Harvey Saayman30-Jun-08 23:07
Harvey Saayman30-Jun-08 23:07 
GeneralRe: removing row from dataTable / DataGridView Issue Pin
Xmen Real 30-Jun-08 23:08
professional Xmen Real 30-Jun-08 23:08 

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.