9/7/2010 2:35:21 AM
Title:
Drag drop between 2 Normal Windows
Hello folks!
I ran into a very interesting problem and not getting any solution. May be someone here could suggest em a solution for this. I have an application in which I have 2 Normal Windows.I want to drag a image from Window1 and want to drop into window2. Problem here is that Neither Drag Manager nor Native Drag drop will help as this scenario is entirely different.It is not a native drag drop as it doesn't involve OS drag drop neither Drag manager will work as Drag Manager is meant to handle drag-drop operation performed in single window only. If anybody ran into the same kind of issue and got solution then please share it with me.Thanks :)
9/7/2010 9:08:44 AM
I don,t thing the native methods will be able to accomplish this but I can give you an idea. You can do it manually. While starting drag set a global variable to true and store the drag-able object in another variable . Now when you release mouse in other window , you need to check that global variable to see if dragging was true and if yes then get the dragged object from that variable and add it to the target.
9/8/2010 5:56:07 AM
Thanks bob,
I have solved it using clipboard class.