PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Drag-n-Drop to Folder or Desktop
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Drag-n-Drop to Folder or Desktop
![]() |
Drag-n-Drop to Folder or Desktop |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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" <kip_potter@hotmail.com> wrote in message news:u%23b7oHbNHHA.4376@TK2MSFTNGP03.phx.gbl... >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 > > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
"Stoitcho Goutsev (100)" <100@100.com> wrote in message news:uScyy9lNHHA.3588@TK2MSFTNGP06.phx.gbl... > 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" <kip_potter@hotmail.com> wrote in message > news:u%23b7oHbNHHA.4376@TK2MSFTNGP03.phx.gbl... >>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 |
|
|
|
#4 |
|
Guest
Posts: n/a
|
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" <kip_potter@hotmail.com> wrote in message news:%23NUeSTnNHHA.3872@TK2MSFTNGP06.phx.gbl... > > > "Stoitcho Goutsev (100)" <100@100.com> wrote in message > news:uScyy9lNHHA.3588@TK2MSFTNGP06.phx.gbl... >> 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" <kip_potter@hotmail.com> wrote in message >> news:u%23b7oHbNHHA.4376@TK2MSFTNGP03.phx.gbl... >>>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 > > |
|
|
|
#5 |
|
Guest
Posts: n/a
|
"Stoitcho Goutsev (100)" <100@100.com> wrote in message news:u4zUAYLOHHA.4172@TK2MSFTNGP03.phx.gbl... > 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" <kip_potter@hotmail.com> wrote in message > news:%23NUeSTnNHHA.3872@TK2MSFTNGP06.phx.gbl... >> >> >> "Stoitcho Goutsev (100)" <100@100.com> wrote in message >> news:uScyy9lNHHA.3588@TK2MSFTNGP06.phx.gbl... >>> 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" <kip_potter@hotmail.com> wrote in message >>> news:u%23b7oHbNHHA.4376@TK2MSFTNGP03.phx.gbl... >>>>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 |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 


