Drag Drop data into Windows Explorer

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • BradBrigade

    #1

    Drag Drop data into Windows Explorer

    I want to drag an object from my application into Windows Explorer and
    have it create a new file, but the object I want to drop is not a file
    to begin with. It seems the only thing I can do is create a temporary
    file, then call DoDragDrop with the temp file's name, then delete the
    temp file after. The problem is that it is a big process to create the
    file, and I don't want to do that until the drop has been done and
    explorer requests the file.

    I know it can be done because Outlook does it with email messages, and
    checking the DataObject's DataFormats reveals that it is not dragging a
    pre-existing file. But, it has a bunch of crap that I have no idea
    about. "FileGroupDescr iptor", "FileConten ts", etc... and I can't find
    out how to use these things in a C# app. It seems they are only use in
    C++.

    I've been searching for the better half of a day and am getting
    nowhere. Can I have it drag a stream and a file name and have explorer
    build the file from that? What can I do? Can someone point me
    somewhere where I might get some help for this?

    Thanks a lot,
    -Brad

  • Stoitcho Goutsev \(100\)

    #2
    Re: Drag Drop data into Windows Explorer

    BradBrigade,

    I don't want to disappoint you, but I have been looking at this 2 years ago
    and I came to the conclusion that this is not possible with .NET. I don't
    remember the details, but just to know there is a big chances that this may
    not be possible at all.


    --

    Stoitcho Goutsev (100)

    "BradBrigad e" <sizzlefist@hot mail.com> wrote in message
    news:1137183285 .278804.282240@ g14g2000cwa.goo glegroups.com.. .[color=blue]
    >I want to drag an object from my application into Windows Explorer and
    > have it create a new file, but the object I want to drop is not a file
    > to begin with. It seems the only thing I can do is create a temporary
    > file, then call DoDragDrop with the temp file's name, then delete the
    > temp file after. The problem is that it is a big process to create the
    > file, and I don't want to do that until the drop has been done and
    > explorer requests the file.
    >
    > I know it can be done because Outlook does it with email messages, and
    > checking the DataObject's DataFormats reveals that it is not dragging a
    > pre-existing file. But, it has a bunch of crap that I have no idea
    > about. "FileGroupDescr iptor", "FileConten ts", etc... and I can't find
    > out how to use these things in a C# app. It seems they are only use in
    > C++.
    >
    > I've been searching for the better half of a day and am getting
    > nowhere. Can I have it drag a stream and a file name and have explorer
    > build the file from that? What can I do? Can someone point me
    > somewhere where I might get some help for this?
    >
    > Thanks a lot,
    > -Brad
    >[/color]


    Comment

    • D. Yates

      #3
      Re: Drag Drop data into Windows Explorer

      Try looking at all the drag and drop examples here:


      You might find one that points you in the right direction.

      Dave


      Comment

      Working...