Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...