Hi
Can anyone give me any help with passing an object across processes, via drag and
drop?
I've written a custom ListView control, which supports dragging and dropping of
its items. The drag and drop works fine within the same application, but fails
when dragging between two instances of the app.
I'm using my own collection class, called Series (derived from CollectionBase),
which holds simple objects representing the list items that are being dragged.
When the drag operation starts, I call DoDragDrop and supply a new instance of a
Series collection as the data.
In the DragDrop event, I retreive the data back from the arguments using GetData.
When dragging within the same application, I receive an object which can be
casted to a Series object, and all is well.
However, when dragging between two application instances, I receive an object
that appears to be a "System.__ComObject" - which I'm not able to cast back to a
Series object.
I've read several newsgroup postings around this area, and most seem to suggest
implementing the ISerializable interface on the object being passed. I've tried
this in the Series class - but it didn't seem to make any difference to the
behaviour I was seeing.
I'd really appreciate any help or hints with this - I've been stumped for days!
Thanks in advance,
Barry Moon