Outlook Message Drag-and-Drop Handling
-
Hello fellow Code Project Denizens ... I have a task where we want to be able to drag-n-drop messages from Outlook into a windows Forms application storing the dropped message as a *.msg file which is stored on a network file system. Does anyone know where I can find information on how to handle the drop data from Outlook(2003)? So far my Googling has turned up nothing useful. The only workaround so far is to drop the msg onto the desktop which generates a *.msg file. That file can then be drag-n-dropped onto my drop target and the file is properly handled. I'd like to cut out the middle step if possible. Shane ":-DIt's a feature:-D" Brodie
-
Hello fellow Code Project Denizens ... I have a task where we want to be able to drag-n-drop messages from Outlook into a windows Forms application storing the dropped message as a *.msg file which is stored on a network file system. Does anyone know where I can find information on how to handle the drop data from Outlook(2003)? So far my Googling has turned up nothing useful. The only workaround so far is to drop the msg onto the desktop which generates a *.msg file. That file can then be drag-n-dropped onto my drop target and the file is properly handled. I'd like to cut out the middle step if possible. Shane ":-DIt's a feature:-D" Brodie
Does this[^] help? There is probably some more code needed though, so that you can query Outlook and tell it to save the message. But I think this might be a start.
Chris Meech I am Canadian. [heard in a local bar] Nobody likes jerks. [espeir] Hey, I am part of a special bread, we are called smart people [Captain See Sharp] The zen of the soapbox is hard to attain...[Jörgen Sigvardsson] I wish I could remember what it was like to only have a short term memory.[David Kentley]
-
Does this[^] help? There is probably some more code needed though, so that you can query Outlook and tell it to save the message. But I think this might be a start.
Chris Meech I am Canadian. [heard in a local bar] Nobody likes jerks. [espeir] Hey, I am part of a special bread, we are called smart people [Captain See Sharp] The zen of the soapbox is hard to attain...[Jörgen Sigvardsson] I wish I could remember what it was like to only have a short term memory.[David Kentley]
Thanks for the reply Chris. I know how to handle Drag-And-Drop:doh:. The problem is in handling the drag-and-drop "data" for an Outlook e-mail message. Maybe a better question on my part would have been "what is contained in the e.Data property when you drop an Outlook e-mail message? And, what do you pass as parameters in the e.Data.GetData() method to retrieve that data?:confused:" Thanks again. Shane ":-DIt's a feature!:-D" Brodie