I have finally got the drag and drop to work on my form, so the user can drop files on it. I have used the msdn example so i can get the whole filename (path + filename). But how do i get only the filename? (lol.zip) And maybe the path where it is?
This is my current code:
so if i write MessageBox.Show(s[i]) it shows the path + filename.Code:string[] s = (string[])e.Data.GetData(DataFormats.FileDrop, false); int i; for (i = 0; i < s.Length; i++)




Reply With Quote