|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Drag of MemoryStream stops at the application form boundary.FileDrop, so I have written the code to turn the FileDrop array into a CIDA and then stuffed the CIDA into a memory stream. So far so good. The issue I encounter is that when C# does the .DoDragDrop the memory stream does not make it across the program boundary. In my test program, the destinationControl.DragEnter event gets the memory stream just fine. If I fire up a second copy of my test program and do the drag from instance one to instance two, then in DragEnter dataObject.GetDataPresent(“Shell IDList Arrayâ€) says true, but when I try to access the memory stream with GetData(“Shell IDList Arrayâ€) I get the following exception: This remoting proxy has no channel sink which means either the server has no registered server channels that are listening, or this application has no suitable client channel to talk to the server. Now, if instead of drag drop – program instance one puts the memory stream on the clipboard and program instance two gets the data from the clipboard is works just the way it’s supposed to. Is this a limit in .Net’s DataObject class or am I doing something stupid with D&D? Thanks for the ideas…Chuck |
|||||||||||||||||||||||