Kirk_G Posted August 8, 2003 Posted August 8, 2003 I have written a program in C# that reads in some raw data (a 2D matrix stored in a tab delimited text file) and creates an image from it after some calculations and scaling. Currently you have to open the files through the menu which opens a OpenFileDialog window to get the filename. I would like to have my program also work by dragging a file onto the Form (which is actually a MDI parent form) and opening showing new image. From what I understand the drag and drop thing works similar to cut and paste but all I want is the filename of the file being dragged and dropped so I can open, perform my calculations, then display image. Does anybody know of a simple way to get just the filename of a file that is being dragged and dropped onto a form? Thx, Kirk Quote
Kirk_G Posted August 8, 2003 Author Posted August 8, 2003 Nevermind, I found the answer. If anyone is interested I can post the code. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.