PC Review


Reply
Thread Tools Rate Thread

Drag-n-Drop to Folder or Desktop

 
 
Mythran
Guest
Posts: n/a
 
      11th Jan 2007
I have a form that displays a list of bitmaps. I have read the MSDN docs
regarding drag-n-drop operations, and have reviewed some examples online on
how to do this, but the examples I have seen thus far only show how to
create an internet shortcut file.

When the user drags an image from the form to the desktop, I would like to
either save the image using a default filename (if possible) or show the
Save As dialog so the user can enter a name for the file themselves. So,
the form with my images (which are in-memory bitmaps and are not stored on
the file system) needs to be able to have the images dragged from the
ListView control (which are ListViewItem's of course) and dropped onto a
specified folder or the desktop (actual folder or desktop, not part of my
app)...

Thanks,
Mythran


 
Reply With Quote
 
 
 
 
Stoitcho Goutsev \(100\)
Guest
Posts: n/a
 
      12th Jan 2007
Mythran,

I've been diging into this problem couple of years ago. Back then I end up
with the conculsion that this is not possible in .NET (at least not at
reasonable mout of work). I posted back then my findings in the newsgroup,
but unfortunately I cannot find the post right now and I don't remember any
details.

Just keep in mind that this might not be possible with .NET.


--
HTH
Stoitcho Goutsev (100)

"Mythran" <(E-Mail Removed)> wrote in message
news:u%(E-Mail Removed)...
>I have a form that displays a list of bitmaps. I have read the MSDN docs
>regarding drag-n-drop operations, and have reviewed some examples online on
>how to do this, but the examples I have seen thus far only show how to
>create an internet shortcut file.
>
> When the user drags an image from the form to the desktop, I would like to
> either save the image using a default filename (if possible) or show the
> Save As dialog so the user can enter a name for the file themselves. So,
> the form with my images (which are in-memory bitmaps and are not stored on
> the file system) needs to be able to have the images dragged from the
> ListView control (which are ListViewItem's of course) and dropped onto a
> specified folder or the desktop (actual folder or desktop, not part of my
> app)...
>
> Thanks,
> Mythran
>
>



 
Reply With Quote
 
Mythran
Guest
Posts: n/a
 
      12th Jan 2007


"Stoitcho Goutsev (100)" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Mythran,
>
> I've been diging into this problem couple of years ago. Back then I end up
> with the conculsion that this is not possible in .NET (at least not at
> reasonable mout of work). I posted back then my findings in the newsgroup,
> but unfortunately I cannot find the post right now and I don't remember
> any details.
>
> Just keep in mind that this might not be possible with .NET.
>
>
> --
> HTH
> Stoitcho Goutsev (100)
>
> "Mythran" <(E-Mail Removed)> wrote in message
> news:u%(E-Mail Removed)...
>>I have a form that displays a list of bitmaps. I have read the MSDN docs
>>regarding drag-n-drop operations, and have reviewed some examples online
>>on how to do this, but the examples I have seen thus far only show how to
>>create an internet shortcut file.
>>
>> When the user drags an image from the form to the desktop, I would like
>> to either save the image using a default filename (if possible) or show
>> the Save As dialog so the user can enter a name for the file themselves.
>> So, the form with my images (which are in-memory bitmaps and are not
>> stored on the file system) needs to be able to have the images dragged
>> from the ListView control (which are ListViewItem's of course) and
>> dropped onto a specified folder or the desktop (actual folder or desktop,
>> not part of my app)...
>>
>> Thanks,
>> Mythran
>>
>>

>
>


Bah, anything's possible, even if I have to handle it all myself :P

"Given enough time and money, anything is possible" - My boss always says...

Mythran


 
Reply With Quote
 
Stoitcho Goutsev \(100\)
Guest
Posts: n/a
 
      15th Jan 2007
That's what I found back then for .NET 1.x I don't know if there is
something new in .NET2.0 that could help with this. We all will apprecaite
if you post your solution if you find one.

I didn't want to discourage you, just wanted to warn you in case you decide
to change you design instead of spending a lot of money and time solving
this.


--
Stoitcho Goutsev (100)

"Mythran" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>
>
> "Stoitcho Goutsev (100)" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Mythran,
>>
>> I've been diging into this problem couple of years ago. Back then I end
>> up with the conculsion that this is not possible in .NET (at least not at
>> reasonable mout of work). I posted back then my findings in the
>> newsgroup, but unfortunately I cannot find the post right now and I don't
>> remember any details.
>>
>> Just keep in mind that this might not be possible with .NET.
>>
>>
>> --
>> HTH
>> Stoitcho Goutsev (100)
>>
>> "Mythran" <(E-Mail Removed)> wrote in message
>> news:u%(E-Mail Removed)...
>>>I have a form that displays a list of bitmaps. I have read the MSDN docs
>>>regarding drag-n-drop operations, and have reviewed some examples online
>>>on how to do this, but the examples I have seen thus far only show how to
>>>create an internet shortcut file.
>>>
>>> When the user drags an image from the form to the desktop, I would like
>>> to either save the image using a default filename (if possible) or show
>>> the Save As dialog so the user can enter a name for the file themselves.
>>> So, the form with my images (which are in-memory bitmaps and are not
>>> stored on the file system) needs to be able to have the images dragged
>>> from the ListView control (which are ListViewItem's of course) and
>>> dropped onto a specified folder or the desktop (actual folder or
>>> desktop, not part of my app)...
>>>
>>> Thanks,
>>> Mythran
>>>
>>>

>>
>>

>
> Bah, anything's possible, even if I have to handle it all myself :P
>
> "Given enough time and money, anything is possible" - My boss always
> says...
>
> Mythran
>
>



 
Reply With Quote
 
Mythran
Guest
Posts: n/a
 
      16th Jan 2007


"Stoitcho Goutsev (100)" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> That's what I found back then for .NET 1.x I don't know if there is
> something new in .NET2.0 that could help with this. We all will apprecaite
> if you post your solution if you find one.
>
> I didn't want to discourage you, just wanted to warn you in case you
> decide to change you design instead of spending a lot of money and time
> solving this.
>
>
> --
> Stoitcho Goutsev (100)
>
> "Mythran" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>>
>>
>> "Stoitcho Goutsev (100)" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Mythran,
>>>
>>> I've been diging into this problem couple of years ago. Back then I end
>>> up with the conculsion that this is not possible in .NET (at least not
>>> at reasonable mout of work). I posted back then my findings in the
>>> newsgroup, but unfortunately I cannot find the post right now and I
>>> don't remember any details.
>>>
>>> Just keep in mind that this might not be possible with .NET.
>>>
>>>
>>> --
>>> HTH
>>> Stoitcho Goutsev (100)
>>>
>>> "Mythran" <(E-Mail Removed)> wrote in message
>>> news:u%(E-Mail Removed)...
>>>>I have a form that displays a list of bitmaps. I have read the MSDN
>>>>docs regarding drag-n-drop operations, and have reviewed some examples
>>>>online on how to do this, but the examples I have seen thus far only
>>>>show how to create an internet shortcut file.
>>>>
>>>> When the user drags an image from the form to the desktop, I would like
>>>> to either save the image using a default filename (if possible) or show
>>>> the Save As dialog so the user can enter a name for the file
>>>> themselves. So, the form with my images (which are in-memory bitmaps
>>>> and are not stored on the file system) needs to be able to have the
>>>> images dragged from the ListView control (which are ListViewItem's of
>>>> course) and dropped onto a specified folder or the desktop (actual
>>>> folder or desktop, not part of my app)...
>>>>
>>>> Thanks,
>>>> Mythran
>>>>
>>>>
>>>
>>>

>>
>> Bah, anything's possible, even if I have to handle it all myself :P
>>
>> "Given enough time and money, anything is possible" - My boss always
>> says...
>>
>> Mythran
>>
>>

>
>


Well, being that this is a side-project that is just a utility program for
me that reads an icon file and displays all of the images stored in the icon
as bitmaps, it's not all that important. I just wanted to drag-n-drop the
images onto a folder and then have the program create the images in this
folder...I can do it by creating temporary files and using the
DragDropEffects.Copy effect and use the DataFormats.FileDrop data format and
specify the temporary file path as the data...this should do the trick!

Cheers,
Mythran


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
E-mail folder vanishes when doing a drag/drop to a Personal Folder Steve Naylor Microsoft Outlook Discussion 5 21st Aug 2008 07:49 PM
Can't drag & drop on desktop! FiOS Dave Windows Vista General Discussion 0 8th Jul 2008 11:24 PM
Re: Cannot drag and drop to desktop Robert Aldwinckle Windows Vista General Discussion 3 7th Mar 2007 07:34 PM
drag and drop on desktop alumni@swedishinstitute.edu Windows XP General 4 8th Feb 2006 01:42 AM
Drag and drop from .NET to desktop... joe smith Microsoft Dot NET Framework 0 3rd May 2004 07:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:04 PM.